| | 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 | |
|
| 86 | 13 | | public PublicChatModel(string channelId, string name, string description, bool joined, |
| | 14 | | int memberCount, bool muted) |
| | 15 | | { |
| 86 | 16 | | this.channelId = channelId; |
| 86 | 17 | | this.name = name; |
| 86 | 18 | | this.description = description; |
| 86 | 19 | | this.joined = joined; |
| 86 | 20 | | this.memberCount = memberCount; |
| 86 | 21 | | this.muted = muted; |
| 86 | 22 | | } |
| | 23 | |
|
| | 24 | | public void CopyFrom(PublicChatModel model) |
| | 25 | | { |
| 1 | 26 | | channelId = model.channelId; |
| 1 | 27 | | name = model.name; |
| 1 | 28 | | description = model.description; |
| 1 | 29 | | joined = model.joined; |
| 1 | 30 | | memberCount = model.memberCount; |
| 1 | 31 | | muted = model.muted; |
| 1 | 32 | | } |
| | 33 | | } |