@Test public void all_fields() throws JSONException { component = FlexIconComponent.newBuilder("https: .setMargin(FlexMessageComponent.Margin.XL) .setSize(FlexMessageComponent.Size.XL5) .setAspectRatio(FlexMessageComponent.AspectRatio.RATIO_1x1) .build(); messageShouldBe("{" + " \"type\": \"icon\"," + " \"url\": \"https: " \"margin\": \"xl\"," + " \"size\": \"xl5\"," + " \"aspectRatio\": \"1:1\"" + "}"); }
public static Builder newBuilder(@NonNull String url) { return new Builder(url); }
FlexIconComponent extends FlexMessageComponent { public static Builder newBuilder(@NonNull String url) { return new Builder(url); } }
FlexIconComponent extends FlexMessageComponent { public static Builder newBuilder(@NonNull String url) { return new Builder(url); } private  FlexIconComponent(); private  FlexIconComponent(@NonNull Builder builder); }
FlexIconComponent extends FlexMessageComponent { public static Builder newBuilder(@NonNull String url) { return new Builder(url); } private  FlexIconComponent(); private  FlexIconComponent(@NonNull Builder builder); static Builder newBuilder(@NonNull String url); @NonNull @Override JSONObject toJsonObject(); }
FlexIconComponent extends FlexMessageComponent { public static Builder newBuilder(@NonNull String url) { return new Builder(url); } private  FlexIconComponent(); private  FlexIconComponent(@NonNull Builder builder); static Builder newBuilder(@NonNull String url); @NonNull @Override JSONObject toJsonObject();  }