Skip to content

Commit

Permalink
Add common interface to VideoVersionsMeta and ImageVersionsMeta
Browse files Browse the repository at this point in the history
  • Loading branch information
gzsombor committed Jun 13, 2021
1 parent c658aac commit 33c6364
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Expand Up @@ -3,7 +3,7 @@
import lombok.Data;

@Data
public class ImageVersionsMeta {
public class ImageVersionsMeta implements Rectangle {
private String url;
private int width;
private int height;
Expand Down
@@ -0,0 +1,7 @@
package com.github.instagram4j.instagram4j.models.media;

public interface Rectangle {
int getWidth();
int getHeight();
String getUrl();
}
Expand Up @@ -3,7 +3,7 @@
import lombok.Data;

@Data
public class VideoVersionsMeta {
public class VideoVersionsMeta implements Rectangle {
private int height;
private int width;
private String id;
Expand Down

0 comments on commit 33c6364

Please sign in to comment.