forked from Inumedia/SlackAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
File.cs
83 lines (73 loc) · 1.89 KB
/
File.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SlackAPI
{
//TODO: See below:
/// <summary>
/// Please do a full, thorough, review of this.
/// </summary>
public class File
{
public string id;
public DateTime timestamp;
public string name;
public string title;
public string mimetype;
public string filetype;
public string pretty_type;
public string user;
public string mode;
public bool editable;
public bool is_external;
public string external_type;
/// <summary>
/// Looks it's in bytes?
/// </summary>
public int size;
public string url;
public string url_download;
public string url_private;
public string url_private_download;
public string thumb_64;
public string thumb_80;
public string thumb_360;
public string thumb_360_gif;
public int thumb_360_w;
public int thumb_360_h;
public string permalink;
public string edit_link;
public string preview;
public string preview_highlight;
public int lines;
public int lines_more;
public bool is_public;
public bool public_url_shared;
public string[] channels;
public string[] groups;
public string[] ims;
public FileComment initial_comment;
public int num_stars;
public bool is_starred;
}
[Flags]
public enum FileTypes
{
all = 63,
posts = 1,
snippets = 2,
images = 4,
gdocs = 8,
zips = 16,
pdfs = 32
}
public class FileComment
{
public string id;
public DateTime timestamp;
public string user;
public string comment;
}
}