/// <summary> /// Gets the APObject instance associated with this endpoint. /// </summary> /// <returns>The APObject associated with this endpoint.</returns> /// <param name="options">Request specific api options. These will override the global settings for the app for this request.</param> public async Task <APObject> GetObjectAsync(ApiOptions options = null) { if (this.Content != null) { return(this.Content); } else { return(await APObjects.GetAsync(this.Type, this.ObjectId, options : options)); } }
protected override async Task <Entity> FetchAsync(ApiOptions options = null) { return(await APObjects.GetAsync(this.Type, this.Id, options : options)); }