//AndroidのmaybeReferenceAndEncode注意 public object Encode() { Dictionary <string, object> dic = new Dictionary <string, object> (); dic.Add("__op", "Add"); dic.Add("objects", NCMBUtility._maybeEncodeJSONObject(this.objects, true)); return(dic); }
/// <summary> /// セッショントークン有効稼働かの処理を行う /// </summary> internal void _checkResponseSignature(string code, string responseData, UnityWebRequest req, ref NCMBException error) { //レスポンスシグネチャのチェック if (NCMBSettings._responseValidationFlag && req.error == null && error == null && req.GetResponseHeader(RESPONSE_SIGNATURE) != null) { string responseSignature = req.GetResponseHeader(RESPONSE_SIGNATURE).ToString(); //データに絵文字があればUnicodeアンエスケープし、レスポンスシグネチャ計算用に対応する //一般のエスケープ表記データ(ダブルクォーテーション..)はこの処理をしないのが正しいです var unescapeResponseData = responseData; if (unescapeResponseData != null) { unescapeResponseData = NCMBUtility.unicodeUnescape(unescapeResponseData); } _signatureCheck(responseSignature, code, unescapeResponseData, req.downloadHandler.data, ref error); } }
public object Encode() { //エンコードを行う return(NCMBUtility._maybeEncodeJSONObject(this.Value, true)); }