-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtodoNotes.txt
More file actions
117 lines (86 loc) · 3.14 KB
/
todoNotes.txt
File metadata and controls
117 lines (86 loc) · 3.14 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
}, {
key: "disconnect",
value: function() {
this.sock.connected() && this.sock.disconnect()
}
}
key: "getStreamModers",
value: function(roomId) {
return this._sendWithCallback("get_stream_moders_list", {
channel_id: roomId
}, "stream_moders_list")
}
return this.sock.send("setting", {
channel_id: roomId,
settings: settings
})
public void PostGgTitle()
{
try
{
HttpWebRequest httpWebRequest = (HttpWebRequest) WebRequest.Create("https://goodgame.ru/ajax/channel/update-title/");
httpWebRequest.Method = "POST";
httpWebRequest.KeepAlive = true;
CookieContainer cookieContainer = new CookieContainer();
cookieContainer.Add(new Cookie("PHPSESSID", this.GGPHPSESSID, "/", "goodgame.ru"));
httpWebRequest.CookieContainer = cookieContainer;
httpWebRequest.ContentType = "application/x-www-form-urlencoded; charset=UTF-8";
byte[] bytes = Encoding.UTF8.GetBytes("objType=7&objId=" + Main.GlobalVars.ChannelIdGG + "&title=" + this.TitleGG.Text + "&gameId=" + this.idgamegg);
httpWebRequest.ContentLength = (long) bytes.Length;
Stream requestStream = httpWebRequest.GetRequestStream();
byte[] buffer = bytes;
int offset = 0;
int length = bytes.Length;
requestStream.Write(buffer, offset, length);
requestStream.Close();
HttpWebResponse response = (HttpWebResponse) httpWebRequest.GetResponse();
new StreamReader(response.GetResponseStream(), Encoding.UTF8).ReadToEnd();
response.Close();
// ISSUE: method pointer
this.statusGG.Invoke((Delegate) new Action((object) this, __methodptr(\u003CPostGgTitle\u003Eb__68_0)));
}
catch
{
// ISSUE: method pointer
this.statusGG.Invoke((Delegate) new Action((object) this, __methodptr(\u003CPostGgTitle\u003Eb__68_1)));
}
}
https://goodgame.ru/ajax/channel/update-title/objType=7&objId=36229&title=thisTitle&gameId=Heroes
| Ответы API
|------------------
| welcome ("welcome"
| success_auth ("success_auth",
| channels_list
| success_join ("success_join",
| success_unjoin
| join_to_room
| users_list ("users_list",
| channel_counters ("channel_counters",
| list
| setting v.2 ("setting",
| ignore_list ("ignore_list",
| channel_history ("channel_history",
| motd
| slowmod
| message ("message",
| private_message ("private_message",
| remove_message ("remove_message",
| user_ban ("user_ban",
| user_warn ("user_warn",
| new_poll ("new_poll",
| poll_results ("poll_results",
| user
| update_rights
| update_groups v.2
| update_premium
| error ("error",
| payment ("payment",
| premium ("premium",
| accepted
| moder_rights ("moder_rights",
| Остальное:UNKNOWN| null |
("reconnecting",
("reconnected",
("stream_moders_list",
("random_result",
("update_user_info",