Exemple #1
0
 public DatabaseWorld[] GetWorldsByCrew(Crew crew, int limit = int.MaxValue)
 {
     return(this.GetWorldsByCrewAsync(crew, limit).GetResultEx());
 }
Exemple #2
0
 public Task <bool> GetCrewSubscriptionStatusAsync(Crew crew)
 {
     return(this.MakeRPCCallAsync("isSubscribedToCrew", crew.Id)
            .Then(t => t.Result.GetBoolean(0))
            .ToSafeTask());
 }
Exemple #3
0
        // 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());
        }