-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcollection classes.cs
54 lines (47 loc) · 1.1 KB
/
collection classes.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Chatio
{
class User
{
public int id;
public string FullName;
public string username;
public User(int id, string FullName, string username)
{
this.id = id;
this.FullName = FullName;
this.username = username;
}
public User() {
this.id = 1;
}
public int getid() {
return id;
}
}
class message{
public string created_at;
public string from;
public string text;
public message(string a,string b,string c) {
this.text = c;
this.from = b;
this.created_at = a;
}
}
class Group
{
public int id;
public string groupname;
public bool isadmin;
public Group(int id, string groupname,bool isadmin){
this.id = id;
this.groupname = groupname;
this.isadmin = isadmin;
}
}
}