Beispiel #1
0
        public static T GetFromServer <T>(SoundBoxServer server, string urlSuffix) where T : BaseModel
        {
            var item = server.LoadObject <T>(urlSuffix);

            item._server = server;
            return(item);
        }
Beispiel #2
0
        public static List <T> GetListFromServer <T>(SoundBoxServer server, string urlSuffix, string jsonIndexer) where T : BaseModel
        {
            List <T> items;

            items = server.LoadObject <List <T> >(urlSuffix, jsonIndexer);
            foreach (var song in items)
            {
                song._server = server;
            }
            return(items);
        }