blob: 077314b612cd5a72a717fa396eb4fdac3d6308cf [file] [log] [blame]
package com.airbnb.lottie;
import org.json.JSONObject;
class ImageAsset {
private final int width;
private final int height;
private final String id;
private final String fileName;
ImageAsset(JSONObject imageJson) {
width = imageJson.optInt("w");
height = imageJson.optInt("h");
id = imageJson.optString("id");
fileName = imageJson.optString("p");
}
int getWidth() {
return width;
}
int getHeight() {
return height;
}
String getId() {
return id;
}
String getFileName() {
return fileName;
}
}