GHCommitComment wrap(GHRepository owner) { this.owner = owner; if (owner.root.isOffline()) { user.wrapUp(owner.root); } return this; } }
/** * Gets the user who put this comment. */ public GHUser getUser() throws IOException { return owner == null || owner.root.isOffline() ? user : owner.root.getUser(user.login); }
/*package*/ GHRepository wrap(GitHub root) { this.root = root; if (root.isOffline()) { owner.wrapUp(root); } return this; }
GHCommitComment wrap(GHRepository owner) { this.owner = owner; if (owner.root.isOffline()) { user.wrapUp(owner.root); } return this; } }
/*package*/ GHRepository wrap(GitHub root) { this.root = root; if (root.isOffline()) { owner.wrapUp(root); } return this; }
/** * Gets the user who put this comment. */ public GHUser getUser() throws IOException { return owner == null || owner.root.isOffline() ? user : owner.root.getUser(user.login); }
/** * Gets the user who posted this comment. */ public GHUser getUser() throws IOException { return owner == null || owner.root.isOffline() ? user : owner.root.getUser(user.getLogin()); }
/** * Gets the user who posted this comment. */ public GHUser getUser() throws IOException { return owner == null || owner.root.isOffline() ? user : owner.root.getUser(user.getLogin()); }
/** * Fully populate the data by retrieving missing data. * * Depending on the original API call where this object is created, it may not contain everything. */ protected synchronized void populate() throws IOException { if (created_at!=null) { return; // already populated } if (root == null || root.isOffline()) { return; // cannot populate, will have to live with what we have } root.retrieve().to(url, this); }
public GHUser getOwner() throws IOException { return root.isOffline() ? owner : root.getUser(getOwnerName()); // because 'owner' isn't fully populated }
public GHUser getOwner() throws IOException { return root.isOffline() ? owner : root.getUser(getOwnerName()); // because 'owner' isn't fully populated }
/** * Fully populate the data by retrieving missing data. * * Depending on the original API call where this object is created, it may not contain everything. */ protected synchronized void populate() throws IOException { if (created_at!=null) { return; // already populated } if (root == null || root.isOffline()) { return; // cannot populate, will have to live with what we have } root.retrieve().to(url, this); }
/** * Repopulates this object. */ public void refresh() throws IOException { if (root.isOffline()) { return; // cannot populate, will have to live with what we have } root.retrieve().to(url, this).wrapUp(owner); }
/** * Repopulates this object. */ public void refresh() throws IOException { if (root.isOffline()) { return; // cannot populate, will have to live with what we have } root.retrieve().to(url, this).wrapUp(owner); }