예제 #1
0
 public static string UserPostDataToJson(DataPrivacy.UserPostData postData)
 {
     return(string.Format("{{\"appid\": \"{0}\", \"userid\": \"{1}\", \"sessionid\": {2}, \"platform\": \"{3}\", \"platformid\": {4}, \"sdk_ver\": \"{5}\", \"debug_device\": {6}, \"deviceid\": \"{7}\", \"plugin_ver\": \"{8}\" }}",
                          postData.appid,
                          postData.userid,
                          postData.sessionid,
                          postData.platform,
                          postData.platformid,
                          postData.sdk_ver,
                          postData.debug_device ? "true" : "false",
                          postData.deviceid,
                          postData.plugin_ver));
 }
예제 #2
0
 public static string UserPostDataToJson(DataPrivacy.UserPostData postData)
 {
     return(JsonUtility.ToJson(postData));
 }