| | 1 | | using System; |
| | 2 | |
|
| | 3 | | [Serializable] |
| | 4 | | public class PublicChatModel : BaseComponentModel |
| | 5 | | { |
| | 6 | | public string channelId; |
| | 7 | | public string name; |
| | 8 | | public string description; |
| | 9 | | public bool joined; |
| | 10 | | public int memberCount; |
| | 11 | | public bool muted; |
| | 12 | | public bool showOnlyOnlineMembers; |
| | 13 | |
|
| 91 | 14 | | public PublicChatModel(string channelId, string name, string description, bool joined, |
| | 15 | | int memberCount, bool muted, bool showOnlyOnlineMembers) |
| | 16 | | { |
| 91 | 17 | | this.channelId = channelId; |
| 91 | 18 | | this.name = name; |
| 91 | 19 | | this.description = description; |
| 91 | 20 | | this.joined = joined; |
| 91 | 21 | | this.memberCount = memberCount; |
| 91 | 22 | | this.muted = muted; |
| 91 | 23 | | this.showOnlyOnlineMembers = showOnlyOnlineMembers; |
| 91 | 24 | | } |
| | 25 | |
|
| | 26 | | public void CopyFrom(PublicChatModel model) |
| | 27 | | { |
| 1 | 28 | | channelId = model.channelId; |
| 1 | 29 | | name = model.name; |
| 1 | 30 | | description = model.description; |
| 1 | 31 | | joined = model.joined; |
| 1 | 32 | | memberCount = model.memberCount; |
| 1 | 33 | | muted = model.muted; |
| 1 | 34 | | } |
| | 35 | | } |