コード例 #1
0
        public static IJsonLibrary JsonLibrary(PubNubUnityBase pnUnityBase)
        {
            IJsonLibrary jsonLibrary;

            #if (USE_MiniJSON)
                #if (ENABLE_PUBNUB_LOGGING)
            pnUnityBase.PNLog.WriteToLog("JSON LIB: USE_MiniJSON", PNLoggingMethod.LevelInfo);
                #endif
            jsonLibrary = new MiniJSONObjectSerializer(pnUnityBase);
            #elif (USE_JSONFX_UNITY_IOS)
                #if (ENABLE_PUBNUB_LOGGING)
            pnUnityBase.PNLog.WriteToLog("JSON LIB: USE_JSONFX_UNITY_IOS", PNLoggingMethod.LevelInfo);
                #endif
            jsonLibrary = new JsonFxUnitySerializer(pnUnityBase);
            #endif
            return(jsonLibrary);
        }
コード例 #2
0
 public JsonFxUnitySerializer(PubNubUnityBase pnUnityBase)
 {
     this.pnUnityBase = pnUnityBase;
 }
コード例 #3
0
 public MiniJSONObjectSerializer(PubNubUnityBase pnUnityBase)
 {
     this.pnUnityBase = pnUnityBase;
 }
コード例 #4
0
 public SimpleJSONSerializer(PubNubUnityBase pnUnityBase){
     this.pnUnityBase = pnUnityBase;
 }