25 lines
767 B
TypeScript
25 lines
767 B
TypeScript
// Metro module 4870 (f4871).
|
|
import Record from "../lib/Record";
|
|
class ConnectedAccountRecord extends Record {
|
|
constructor(a0) {
|
|
super();
|
|
this.id = a0.id;
|
|
this.type = a0.type;
|
|
this.name = a0.name;
|
|
this.revoked = a0.revoked || false;
|
|
this.integrations = a0.integrations || [];
|
|
this.visibility = a0.visibility || 0;
|
|
this.friendSync = a0.friend_sync || false;
|
|
this.showActivity = a0.show_activity || false;
|
|
this.verified = a0.verified || false;
|
|
this.accessToken = a0.access_token || null;
|
|
this.twoWayLink = a0.two_way_link || false;
|
|
this.metadata = a0.metadata || null;
|
|
this.metadataVisibility = a0.metadata_visibility || 0;
|
|
}
|
|
toString() {
|
|
return this.name;
|
|
}
|
|
}
|
|
export default ConnectedAccountRecord;
|