-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVkApi.cs
62 lines (54 loc) · 2.04 KB
/
VkApi.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
55
56
57
58
59
60
61
62
using System;
namespace Documentation
{
[ApiDescription("Vk API client")]
public class VkApi
{
[ApiMethod]
[ApiDescription("private authorize user. For internal use only")]
private bool AuthorizePrivate()
{
throw new NotImplementedException();
}
// No [ApiMethod]
[ApiDescription("Authorize user. Returns true if authorized")]
public bool Authorize2([ApiRequired] string login, [ApiRequired] string password)
{
throw new NotImplementedException();
}
public bool EnterBackdoor([ApiRequired] string login, [ApiRequired] string password)
{
throw new NotImplementedException();
}
[ApiMethod]
[ApiDescription("Authorize user. Returns true if authorized")]
public void Authorize([ApiRequired] string login, [ApiRequired] string password, bool allowNoname = false)
{
throw new NotImplementedException();
}
[ApiMethod]
[ApiDescription("Gets user audio tracks. If userId is not presented gets authorized user audio tracks")]
[return: ApiRequired(false)]
public VkAudio[] SelectAudio(
[ApiRequired(false)] string userId,
[ApiIntValidation(1, 100), ApiDescription("number of audios to return"), ApiRequired] int batchSize)
{
throw new NotImplementedException();
}
[ApiMethod]
[ApiDescription("Gets user audio tracks count. If userId is not presented gets authorized user audio tracks")]
[return: ApiRequired]
[return: ApiIntValidation(0, int.MaxValue / 2)]
public int GetTotalAudioCount([ApiRequired(false)] string userId)
{
throw new NotImplementedException();
}
}
[ApiDescription("VkAudio information")]
public class VkAudio
{
[ApiDescription("Track title")] public string Title { get; set; }
[ApiDescription("Audio artists, separated by ',' ")]
public string[] Artists { get; set; }
}
}