Skip to content

Commit

Permalink
Add square_medium_url to PXLPhoto (#40)
Browse files Browse the repository at this point in the history
Co-authored-by: sungjun <[email protected]>
  • Loading branch information
SungjunApp and sungjun authored Apr 12, 2021
1 parent 0924cdd commit e55ac7a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ public class CDNPhotos implements Parcelable {
@Json(name = "original_url")
public URL originalUrl;

@FieldURL
@Json(name = "square_medium_url")
public URL squareMediumUrl;

@Override
public int describeContents() {
Expand All @@ -37,6 +40,7 @@ public void writeToParcel(Parcel dest, int flags) {
dest.writeSerializable(this.mediumUrl);
dest.writeSerializable(this.largeUrl);
dest.writeSerializable(this.originalUrl);
dest.writeSerializable(this.squareMediumUrl);
}

public CDNPhotos() {
Expand All @@ -47,6 +51,7 @@ protected CDNPhotos(Parcel in) {
this.mediumUrl = (URL) in.readSerializable();
this.largeUrl = (URL) in.readSerializable();
this.originalUrl = (URL) in.readSerializable();
this.squareMediumUrl = (URL) in.readSerializable();
}

public static final Parcelable.Creator<CDNPhotos> CREATOR = new Parcelable.Creator<CDNPhotos>() {
Expand Down

0 comments on commit e55ac7a

Please sign in to comment.