${iServerJava6R_ThemeResult_Title}
${iServerJava6R_ThemeResult_Description}
/// <summary>${iServerJava6R_ThemeResult_method_FromJson_D}</summary> /// <returns>${iServerJava6R_ThemeResult_method_FromJson_return}</returns> /// <param name="jsonResult">${iServerJava6R_ThemeResult_method_FromJson_param_jsonObject}</param> public static ThemeResult FromJson(string jsonResult) { JsonObject resultObject = (JsonObject)JsonValue.Parse(jsonResult); ResourceInfo resourceInfo = new ResourceInfo { NewResourceID = resultObject["newResourceID"], NewResourceLocation = resultObject["newResourceLocation"], Succeed = (bool)resultObject["succeed"] }; ThemeResult themeResult = new ThemeResult { ResourceInfo = resourceInfo }; return themeResult; }
private void ThemeRequest_Complated(object sender, RequestEventArgs e) { ThemeResult result = ThemeResult.FromJson(e.Result); lastResult = result; ThemeEventArgs args = new ThemeEventArgs(result, e.Result, e.UserState); OnProcessCompleted(args); }
/// <summary>${iServerJava6R_ThemeEventArgs_constructor_D}</summary> internal ThemeEventArgs(ThemeResult result, string originResult, object token) : base(token) { this.Result = result; this.OriginResult = originResult; }