Beispiel #1
0
        private byte[] createMultiDeviceBlockedContent(BlockedListMessage blocked)
        {
            Content.Builder     container   = Content.CreateBuilder();
            SyncMessage.Builder syncMessage = SyncMessage.CreateBuilder();
            SyncMessage.Types.Blocked.Builder blockedMessage = SyncMessage.Types.Blocked.CreateBuilder();

            blockedMessage.AddRangeNumbers(blocked.getNumbers());

            return(container.SetSyncMessage(syncMessage.SetBlocked(blockedMessage)).Build().ToByteArray());
        }
Beispiel #2
0
        private byte[] createMultiDeviceBlockedContent(BlockedListMessage blocked)
        {
            Content content         = new Content {
            };
            SyncMessage syncMessage = new SyncMessage {
            };

            SyncMessage.Types.Blocked blockedMessage = new SyncMessage.Types.Blocked {
            };

            blockedMessage.Numbers.AddRange(blocked.getNumbers());
            syncMessage.Blocked = blockedMessage;
            content.SyncMessage = syncMessage;
            return(content.ToByteArray());
        }