Example #1
0
            public User getUser(string user)
            {
                var  jsonString = aReq.getAPIJson(APIResources.getUser(user), oaCreds, true);
                User obj;
                var  state = ser.toType(jsonString, out obj);

                if (state.Error)
                {
                    return(null);
                }
                else
                {
                    return(obj);
                }
            }
Example #2
0
            public ScheduledBroadcastList get(int ID)
            {
                var jsonString = aReq.getAPIJson(APIResources.getScheduledBroadcast("" + ID), oaCreds, true);
                ScheduledBroadcastList obj;
                var state = ser.toType(jsonString, out obj);

                if (state.Error)
                {
                    return(null);
                }
                else
                {
                    return(obj);
                }
            }
Example #3
0
            public Language get(string Language)
            {
                var      jsonString = aReq.getAPIJson(APIResources.getLangauge(Language), oaCreds, true);
                Language obj;
                var      state = ser.toType(jsonString, out obj);

                if (state.Error)
                {
                    return(null);
                }
                else
                {
                    return(obj);
                }
            }
Example #4
0
            public Livestream     get(string livestream)
            {
                var        jsonString = aReq.getAPIJson(APIResources.getLivestream(livestream), oaCreds, true);
                Livestream obj;
                var        state = ser.toType(jsonString, out obj);

                if (state.Error)
                {
                    return(null);
                }
                else
                {
                    return(obj);
                }
            }
Example #5
0
            public CodingCategory get(string Category)
            {
                var            jsonString = aReq.getAPIJson(APIResources.getCodingCategory(Category), oaCreds, true);
                CodingCategory obj;
                var            state = ser.toType(jsonString, out obj);

                if (state.Error)
                {
                    return(null);
                }
                else
                {
                    return(obj);
                }
            }