Advertisement
notjacob

class

Mar 22nd, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class BungieClan {
  2.     constructor(id, json) {
  3.         this._id = id;
  4.         this._name = json.Response.detail.name;
  5.         this._created = json.Response.detail.creationDate;
  6.         this._public = json.Response.detail.isPublic;
  7.         this._memberc = json.Response.detail.memberCount;
  8.         this._groupType = json.Response.detail.groupType;
  9.         this._about = json.Response.detail.about;
  10.         this._motto = json.Response.detail.motto;
  11.         this._allowchat = json.Response.detail.allowChat;
  12.         this._isDefaultPostPublic = json.Response.detail.isDefaultPostPublic;
  13.         this._locale = json.Response.detail.locale;
  14.         this._defaultPublicity = json.Response.detail.defaultPublicity;
  15.         this._bannerPath = json.Response.detail.bannerPath;
  16.         this._avatarPath = json.Response.detail.avatarPath;
  17.         this._founderName = json.Response.founder.destinyUserInfo.displayName;
  18.         this._founderId = json.Response.founder.destinyUserInfo.membershipId;
  19.         this._json = json;
  20.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement