コード例 #1
0
 internal override void NativeCallback(string message)
 {
     if (message.StartsWith("InboxOnChanged"))
     {
         InboxChanged?.Invoke();
     }
     else if (message.StartsWith("InboxForceContentUpdate:"))
     {
         bool success = message.EndsWith("1");
         ForceContentUpdate?.Invoke(success);
     }
     else if (message.StartsWith("InboxDownloadMessages:"))
     {
         bool success = message.EndsWith("1");
         OneTimeUpdate?.Invoke(success);
         OneTimeUpdate = null;
     }
 }
コード例 #2
0
 private void TriggerInboxSyncedWithStatus(bool status, OnForceContentUpdate completedHandler)
 {
     completedHandler?.Invoke(status);
     ForceContentUpdate?.Invoke(status);
 }