Пример #1
0
 public void SendPrivateMessage(int server, PrivateMessageActions action, Guid serviceId, string contentId,
                                Guid ownerId){
     SendPrivateMessage(server, action, serviceId, contentId, null, ownerId, "");
 }
Пример #2
0
 public void SendPrivateMessage(int server, PrivateMessageActions action, Guid serviceId) {
     SendPrivateMessage(server, new PrivateMessage { Action = action, Sender = client.Id, Id = serviceId });
 }
Пример #3
0
 private void SendPrivateMessage(int server, PrivateMessageActions action, Guid serviceId, string contentId,
     byte[] data, Guid ownerId, string channelName)
 {
     if (server <= 0) return;
     var channel = server + ServiceChannelExtentions;
     var pm = new PrivateMessage
     {
         Action = action,
         Sender = client.Id,
         Id = serviceId,
         ContentId = contentId,
         Content = data,
         OwnerId = ownerId,
         Channel = channelName
     };
     var content = pm.ConvertToStream().ToArray();
     client.Imb.SignalBuffer(channel, 0, content);
 }