HistoryLength









How do I use History Length
Below are practical examples compiled from projects for learning and reference purposes

Featured Snippets


File name: ChatGui.cs Copy
296     public void OnConnected()
297     {
298         if (this.ChannelsToJoinOnConnect != null && this.ChannelsToJoinOnConnect.Length > 0)
299         {
300             this.chatClient.Subscribe(this.ChannelsToJoinOnConnect, this.HistoryLengthToFetch);
301         }
302
303         this.chatClient.AddFriends(new string[] {"tobi", "ilya"}); // Add some users to the server-list to get their status updates
304         this.chatClient.SetOnlineStatus(ChatUserStatus.Online); // You can set your online state (without a mesage).
305     }
File name: ChatClient.cs Copy
676         private bool SendChannelOperation(string[] channels, byte operation, int historyLength)
677         {
678             Dictionary opParameters = new Dictionary { { (byte)ChatParameterCode.Channels, channels } };
679
680             if (historyLength != 0)
681             {
682                 opParameters.Add((byte)ChatParameterCode.HistoryLength, historyLength);
683             }
684
685             return this.chatPeer.OpCustom(operation, opParameters, true);
686         }

HistoryLength 141 lượt xem

Gõ tìm kiếm nhanh...