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);
        }
 public JsonFxUnitySerializer(PubNubUnityBase pnUnityBase)
 {
     this.pnUnityBase = pnUnityBase;
 }
 public MiniJSONObjectSerializer(PubNubUnityBase pnUnityBase)
 {
     this.pnUnityBase = pnUnityBase;
 }
예제 #4
0
 public SimpleJSONSerializer(PubNubUnityBase pnUnityBase){
     this.pnUnityBase = pnUnityBase;
 }