RemoveFriends
How do I use Remove Friends
Below are practical examples compiled from projects for learning and reference purposes
Featured Snippets
Line | Code | Ex.. |
---|---|---|
496 | public bool RemoveFriends(string[] friends) | 1 |
File name: ChatClient.cs
Copy
496 public bool RemoveFriends(string[] friends)
497 {
498 if (!this.CanChat)
499 {
500 // TODO: log error
501 return false;
502 }
503
504 if (friends == null || friends.Length == 0)
505 {
506 this.LogWarning("RemoveFriends can't be called for empty or null list.");
507 return false;
508 }
509
510 Dictionary
511 {
512 { ChatParameterCode.Friends, friends },
513 };
514 return this.chatPeer.OpCustom(ChatOperationCode.RemoveFriends, parameters, true);
515 }
RemoveFriends 123 lượt xem
Gõ tìm kiếm nhanh...