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