forked from slackapi/java-slack-sdk
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTeam.java
More file actions
75 lines (64 loc) · 1.87 KB
/
Team.java
File metadata and controls
75 lines (64 loc) · 1.87 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
package com.slack.api.model;
import com.google.gson.annotations.SerializedName;
import lombok.AccessLevel;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
@Data
public class Team {
private String id;
private String name;
private String domain;
private String emailDomain;
private TeamIcon icon;
private String url;
private String publicUrl;
private String enterpriseId;
private String enterpriseName;
private String enterpriseDomain;
private List<String> defaultChannels;
private Boolean isVerified;
private String discoverable; // "invite_only"
private String avatarBaseUrl;
private Boolean lobSalesHomeEnabled;
private Boolean isSfdcAutoSlack;
@Data
public static class Profile {
private String id;
private String sectionId;
private String fieldName;
private Integer ordering;
private String label;
private String hint;
private String type;
private List<String> possibleValues;
private ProfileOptions options;
@SerializedName("is_hidden")
private boolean hidden;
@SerializedName("is_inverse")
private boolean inverse;
private ProfilePermissions permissions;
}
@Data
public static class ProfileOptions {
@Getter(AccessLevel.NONE)
@Setter(AccessLevel.NONE)
@SerializedName("is_protected")
private boolean _protected;
@SerializedName("is_scim")
private boolean scim;
public boolean isProtected() {
return _protected;
}
public void setProtected(boolean isProtected) {
this._protected = isProtected;
}
}
@Data
public static class ProfilePermissions {
private List<String> api;
private boolean ui;
private boolean scim;
}
}