public void SendPrivateMessage(int server, PrivateMessageActions action, Guid serviceId, string contentId, Guid ownerId){ SendPrivateMessage(server, action, serviceId, contentId, null, ownerId, ""); }
public void SendPrivateMessage(int server, PrivateMessageActions action, Guid serviceId) { SendPrivateMessage(server, new PrivateMessage { Action = action, Sender = client.Id, Id = serviceId }); }
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); }