11using System ;
2+ using UnityEngine ;
23
34namespace Gameframe . Giphy
45{
56 [ Serializable ]
67 public class GiphyQueryRandomResult
78 {
8- public GiphyQueryRandomResultData data ;
9- public GiphyQueryMetaData meta ;
9+ [ SerializeField ] private GiphyQueryRandomResultData data ;
10+ [ SerializeField ] private GiphyQueryMetaData meta ;
11+
12+ public GiphyQueryRandomResultData Data => data ;
13+ public GiphyQueryMetaData Meta => meta ;
1014 }
1115
1216 [ Serializable ]
1317 public class GiphyQueryRandomResultData : GiphyQueryCommonResultData
1418 {
15- public GiphyGifResultImagesData images ;
16-
17- public string image_original_url ;
18- public string image_url ;
19- public string image_mp4_url ;
20- public int image_frames ;
21- public int image_width ;
22- public int image_height ;
23-
24- public string fixed_height_downsampled_url ;
25- public int fixed_height_downsampled_width ;
26- public int fixed_height_downsampled_height ;
27-
28- public string fixed_width_downsampled_url ;
29- public int fixed_width_downsampled_width ;
30- public int fixed_width_downsampled_height ;
31-
32- public string fixed_height_small_url ;
33- public string fixed_height_small_still_url ;
34- public int fixed_height_small_width ;
35- public int fixed_height_small_height ;
36-
37- public string fixed_width_small_url ;
38- public string fixed_width_small_still_url ;
39- public int fixed_width_small_width ;
40- public int fixed_width_small_height ;
41-
42- public string caption ;
19+ [ SerializeField ] private GiphyGifResultImagesData images ;
20+
21+ [ SerializeField ] private string image_original_url ;
22+ [ SerializeField ] private string image_url ;
23+ [ SerializeField ] private string image_mp4_url ;
24+ [ SerializeField ] private int image_frames ;
25+ [ SerializeField ] private int image_width ;
26+ [ SerializeField ] private int image_height ;
27+
28+ [ SerializeField ] private string fixed_height_downsampled_url ;
29+ [ SerializeField ] private int fixed_height_downsampled_width ;
30+ [ SerializeField ] private int fixed_height_downsampled_height ;
31+
32+ [ SerializeField ] private string fixed_width_downsampled_url ;
33+ [ SerializeField ] private int fixed_width_downsampled_width ;
34+ [ SerializeField ] private int fixed_width_downsampled_height ;
35+
36+ [ SerializeField ] private string fixed_height_small_url ;
37+ [ SerializeField ] private string fixed_height_small_still_url ;
38+ [ SerializeField ] private int fixed_height_small_width ;
39+ [ SerializeField ] private int fixed_height_small_height ;
40+
41+ [ SerializeField ] private string fixed_width_small_url ;
42+ [ SerializeField ] private string fixed_width_small_still_url ;
43+ [ SerializeField ] private int fixed_width_small_width ;
44+ [ SerializeField ] private int fixed_width_small_height ;
45+
46+ [ SerializeField ] private string caption ;
47+
48+ public GiphyGifResultImagesData Images => images ;
49+ public string ImageOriginalUrl => image_original_url ;
50+ public string ImageUrl => image_url ;
51+ public string ImageMp4Url => image_mp4_url ;
52+ public int ImageFrames => image_frames ;
53+ public int ImageWidth => image_width ;
54+ public int ImageHeight => image_height ;
55+
56+ public string FixedHeightDownsampledUrl => fixed_height_downsampled_url ;
57+ public int FixedHeightDownsampledWidth => fixed_height_downsampled_width ;
58+ public int FixedHeightDownsampledHeight => fixed_height_downsampled_height ;
59+ public string FixedWidthDownsampledUrl => fixed_width_downsampled_url ;
60+ public int FixedWidthDownsampledWidth => fixed_width_downsampled_width ;
61+ public int FixedWidthDownsampledHeight => fixed_width_downsampled_height ;
62+ public string FixedHeightSmallUrl => fixed_height_small_url ;
63+ public string FixedHeightSmallStillUrl => fixed_height_small_still_url ;
64+ public int FixedHeightSmallWidth => fixed_height_small_width ;
65+ public int FixedHeightSmallHeight => fixed_height_small_height ;
66+ public string FixedWidthSmallUrl => fixed_width_small_url ;
67+ public string FixedWidthSmallStillUrl => fixed_width_small_still_url ;
68+ public int FixedWidthSmallWidth => fixed_width_small_width ;
69+ public int FixedWidthSmallHeight => fixed_width_small_height ;
70+ public string Caption => caption ;
4371 }
4472}
0 commit comments