-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from coryleach/dev
merge dev into master
- Loading branch information
Showing
14 changed files
with
269 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
exclude_paths: | ||
- '*.md' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,63 @@ | ||
using System; | ||
using UnityEngine; | ||
|
||
namespace Gameframe.Giphy | ||
{ | ||
[Serializable] | ||
public class GiphyQueryCommonResultData | ||
{ | ||
public string type; | ||
public string id; | ||
public string url; | ||
public string slug; | ||
public string bitly_gif_url; | ||
public string bitly_url; | ||
public string embed_url; | ||
public string username; | ||
public string source; | ||
public string title; | ||
public string rating; | ||
public string content_url; | ||
public string source_tld; | ||
public int is_sticker; | ||
[SerializeField] private string type; | ||
[SerializeField] private string id; | ||
[SerializeField] private string url; | ||
[SerializeField] private string slug; | ||
[SerializeField] private string bitly_gif_url; | ||
[SerializeField] private string bitly_url; | ||
[SerializeField] private string embed_url; | ||
[SerializeField] private string username; | ||
[SerializeField] private string source; | ||
[SerializeField] private string title; | ||
[SerializeField] private string rating; | ||
[SerializeField] private string content_url; | ||
[SerializeField] private string source_tld; | ||
[SerializeField] private int is_sticker; | ||
|
||
public int IsSticker => is_sticker; | ||
public string SourceTld => source_tld; | ||
public string ContentUrl => content_url; | ||
public string Rating => rating; | ||
public string Title => title; | ||
public string Source => source; | ||
public string Username => username; | ||
public string EmbedUrl => embed_url; | ||
public string BitlyUrl => bitly_url; | ||
public string BitlyGifUrl => bitly_gif_url; | ||
public string Slug => slug; | ||
public string Url => url; | ||
public string Id => id; | ||
public string Type1 => type; | ||
} | ||
|
||
[Serializable] | ||
public class GiphyQueryMetaData | ||
{ | ||
public int status; | ||
public string msg; | ||
public string response_id; | ||
[SerializeField] private int status; | ||
[SerializeField] private string msg; | ||
[SerializeField] private string response_id; | ||
|
||
public int Status => status; | ||
public string Msg => msg; | ||
public string ResponseId => response_id; | ||
} | ||
|
||
[Serializable] | ||
public class GiphyQueryPaginationData | ||
{ | ||
public int total_count; | ||
public int count; | ||
public int offset; | ||
[SerializeField] private int total_count; | ||
[SerializeField] private int count; | ||
[SerializeField] private int offset; | ||
|
||
public int TotalCount => total_count; | ||
public int Count => count; | ||
public int Offset => offset; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,72 @@ | ||
using System; | ||
using UnityEngine; | ||
|
||
namespace Gameframe.Giphy | ||
{ | ||
[Serializable] | ||
public class GiphyQueryRandomResult | ||
{ | ||
public GiphyQueryRandomResultData data; | ||
public GiphyQueryMetaData meta; | ||
[SerializeField] private GiphyQueryRandomResultData data; | ||
[SerializeField] private GiphyQueryMetaData meta; | ||
|
||
public GiphyQueryRandomResultData Data => data; | ||
public GiphyQueryMetaData Meta => meta; | ||
} | ||
|
||
[Serializable] | ||
public class GiphyQueryRandomResultData : GiphyQueryCommonResultData | ||
{ | ||
public GiphyGifResultImagesData images; | ||
|
||
public string image_original_url; | ||
public string image_url; | ||
public string image_mp4_url; | ||
public int image_frames; | ||
public int image_width; | ||
public int image_height; | ||
|
||
public string fixed_height_downsampled_url; | ||
public int fixed_height_downsampled_width; | ||
public int fixed_height_downsampled_height; | ||
|
||
public string fixed_width_downsampled_url; | ||
public int fixed_width_downsampled_width; | ||
public int fixed_width_downsampled_height; | ||
|
||
public string fixed_height_small_url; | ||
public string fixed_height_small_still_url; | ||
public int fixed_height_small_width; | ||
public int fixed_height_small_height; | ||
|
||
public string fixed_width_small_url; | ||
public string fixed_width_small_still_url; | ||
public int fixed_width_small_width; | ||
public int fixed_width_small_height; | ||
|
||
public string caption; | ||
[SerializeField] private GiphyGifResultImagesData images; | ||
|
||
[SerializeField] private string image_original_url; | ||
[SerializeField] private string image_url; | ||
[SerializeField] private string image_mp4_url; | ||
[SerializeField] private int image_frames; | ||
[SerializeField] private int image_width; | ||
[SerializeField] private int image_height; | ||
|
||
[SerializeField] private string fixed_height_downsampled_url; | ||
[SerializeField] private int fixed_height_downsampled_width; | ||
[SerializeField] private int fixed_height_downsampled_height; | ||
|
||
[SerializeField] private string fixed_width_downsampled_url; | ||
[SerializeField] private int fixed_width_downsampled_width; | ||
[SerializeField] private int fixed_width_downsampled_height; | ||
|
||
[SerializeField] private string fixed_height_small_url; | ||
[SerializeField] private string fixed_height_small_still_url; | ||
[SerializeField] private int fixed_height_small_width; | ||
[SerializeField] private int fixed_height_small_height; | ||
|
||
[SerializeField] private string fixed_width_small_url; | ||
[SerializeField] private string fixed_width_small_still_url; | ||
[SerializeField] private int fixed_width_small_width; | ||
[SerializeField] private int fixed_width_small_height; | ||
|
||
[SerializeField] private string caption; | ||
|
||
public GiphyGifResultImagesData Images => images; | ||
public string ImageOriginalUrl => image_original_url; | ||
public string ImageUrl => image_url; | ||
public string ImageMp4Url => image_mp4_url; | ||
public int ImageFrames => image_frames; | ||
public int ImageWidth => image_width; | ||
public int ImageHeight => image_height; | ||
|
||
public string FixedHeightDownsampledUrl => fixed_height_downsampled_url; | ||
public int FixedHeightDownsampledWidth => fixed_height_downsampled_width; | ||
public int FixedHeightDownsampledHeight => fixed_height_downsampled_height; | ||
public string FixedWidthDownsampledUrl => fixed_width_downsampled_url; | ||
public int FixedWidthDownsampledWidth => fixed_width_downsampled_width; | ||
public int FixedWidthDownsampledHeight => fixed_width_downsampled_height; | ||
public string FixedHeightSmallUrl => fixed_height_small_url; | ||
public string FixedHeightSmallStillUrl => fixed_height_small_still_url; | ||
public int FixedHeightSmallWidth => fixed_height_small_width; | ||
public int FixedHeightSmallHeight => fixed_height_small_height; | ||
public string FixedWidthSmallUrl => fixed_width_small_url; | ||
public string FixedWidthSmallStillUrl => fixed_width_small_still_url; | ||
public int FixedWidthSmallWidth => fixed_width_small_width; | ||
public int FixedWidthSmallHeight => fixed_width_small_height; | ||
public string Caption => caption; | ||
} | ||
} |
Oops, something went wrong.