public async Task <T> LoadJsonAsync() { if (this.completed) { return(this.instance); } using (var content = this.Response.Content) { var responseText = await content.ReadAsStringAsync() .ConfigureAwait(false); try { this.instance = MyCommon.CreateDataFromJson <T>(responseText); this.completed = true; return(this.instance); } catch (SerializationException ex) { throw TwitterApiException.CreateFromException(ex, responseText); } } }
/// <exception cref="SerializationException"/> public static TwitterError ParseJson(string json) { return(MyCommon.CreateDataFromJson <TwitterError>(json)); }
public static TwitterTextConfiguration ParseJson(string json) => MyCommon.CreateDataFromJson <TwitterTextConfiguration>(json);
public static TwitterDirectMessage[] ParseJsonArray(string json) => MyCommon.CreateDataFromJson <TwitterDirectMessage[]>(json);
public static TwitterStatusCompat ParseJson(string json) => MyCommon.CreateDataFromJson <TwitterStatusCompat>(json);
public static StreamMessageDirectMessage ParseJson(string json) => MyCommon.CreateDataFromJson <StreamMessageDirectMessage>(json);
public static StreamMessageScrubGeo ParseJson(string json) => MyCommon.CreateDataFromJson <StreamMessageScrubGeo>(json);
/// <exception cref="SerializationException"/> public static TwitterConfiguration ParseJson(string json) { return(MyCommon.CreateDataFromJson <TwitterConfiguration>(json)); }
/// <exception cref="SerializationException"/> public static TwitterStatusCompat[] ParseJsonArray(string json) { return(MyCommon.CreateDataFromJson <TwitterStatusCompat[]>(json)); }
/// <exception cref="SerializationException"/> public static TwitterStreamEvent ParseJson(string json) { return(MyCommon.CreateDataFromJson <TwitterStreamEvent>(json)); }
/// <exception cref="SerializationException"/> public static TwitterUploadMediaInit ParseJson(string json) => MyCommon.CreateDataFromJson <TwitterUploadMediaInit>(json);
/// <exception cref="SerializationException"/> public static TwitterFriendship ParseJson(string json) { return(MyCommon.CreateDataFromJson <TwitterFriendship>(json)); }
/// <exception cref="SerializationException"/> public static TwitterUploadMediaResult ParseJson(string json) { return(MyCommon.CreateDataFromJson <TwitterUploadMediaResult>(json)); }
public static TwitterRateLimits ParseJson(string json) => MyCommon.CreateDataFromJson <TwitterRateLimits>(json);
public static TwitterList ParseJson(string json) => MyCommon.CreateDataFromJson <TwitterList>(json);
/// <exception cref="SerializationException"/> public static TwitterDirectMessage ParseJson(string json) { return(MyCommon.CreateDataFromJson <TwitterDirectMessage>(json)); }
public static TwitterList[] ParseJsonArray(string json) => MyCommon.CreateDataFromJson <TwitterList[]>(json);
public static TwitterSearchResult ParseJson(string json) => MyCommon.CreateDataFromJson <TwitterSearchResult>(json);