Exemplo n.º 1
0
 internal static bool IsInvalidRuntime(string identifier, RuntimePlatform platform)
 {
     if (Application.platform != platform)
     {
         Debug.LogWarning("[LINE SDK] This RuntimePlatform is not supported. Only iOS and Android devices are supported.");
         var errorJson = @"{""code"":-1, ""message"":""Platform not supported.""}";
         var result    = CallbackPayload.WrapValue(identifier, errorJson);
         LineSDK.Instance.OnApiError(result);
         return(true);
     }
     return(false);
 }
        internal static string WrapValue(string identifier, string value)
        {
            var payload = new CallbackPayload(identifier, value);

            return(payload.ToJson());
        }