public DatabaseWorld[] GetWorldsByCrew(Crew crew, int limit = int.MaxValue) { return(this.GetWorldsByCrewAsync(crew, limit).GetResultEx()); }
public Task <bool> GetCrewSubscriptionStatusAsync(Crew crew) { return(this.MakeRPCCallAsync("isSubscribedToCrew", crew.Id) .Then(t => t.Result.GetBoolean(0)) .ToSafeTask()); }
// WorldsByCrew public Task <DatabaseWorld[]> GetWorldsByCrewAsync(Crew crew, int limit = int.MaxValue) { return(DatabaseUtils.RecursiveLoadRangeAsync(this.Client, "Worlds", "ByCrew", null, crew.Id, crew.Id, limit, dbo => dbo.GetString("Crew")) .Then(t => t.Result.Select(DatabaseWorld.FromDatabaseObject).ToArray()) .ToSafeTask()); }