示例#1
0
        public string GetVariableInfo(string Variable, String authToken)
        {
            VariablesResponseType aVType = GetVariableInfoObject(Variable, null);
            string xml = WSUtils.ConvertToXml(aVType, typeof(VariablesResponseType));

            return(xml);
        }
示例#2
0
        public string GetSites(string[] SiteNumbers, String authToken)
        {
            SiteInfoResponseType aSite = GetSitesObject(SiteNumbers, null);
            string xml = WSUtils.ConvertToXml(aSite, typeof(SiteInfoResponseType));

            return(xml);
        }
示例#3
0
        public virtual string GetSiteInfo(string SiteNumber, String authToken)
        {
            SiteInfoResponseType aSite = GetSiteInfoObject(SiteNumber, null);
            string xml = WSUtils.ConvertToXml(aSite, typeof(SiteInfoResponseType));

            return(xml);
        }
示例#4
0
        public virtual string GetValues(string locationParam, string VariableCode, string StartDate, string EndDate,
                                        String authToken)
        {
            TimeSeriesResponseType aSite = GetValuesObject(locationParam, VariableCode, StartDate, EndDate, null);

            return(WSUtils.ConvertToXml(aSite, typeof(TimeSeriesResponseType)));
        }
示例#5
0
            public override string GetVariableInfo(string variable, String authToken)
            {
                VariablesResponseTypeGeneric aVType = GetVariableInfoObject(variable, null);
                string xml = WSUtils.ConvertToXml(aVType, typeof(xsd.VariablesResponse));

                return(xml);
            }
示例#6
0
            public override string GetSiteInfo(string site, String authToken)
            {
                SiteInfoResponseTypeGeneric aSite = GetSiteInfoObject(site, null);
                string xml = WSUtils.ConvertToXml(aSite, typeof(xsd.SiteInfoResponse));

                return(xml);
            }
示例#7
0
            public virtual string GetValues(string location, string variable, string startDate, string endDate, String authToken)
            {
                TimeSeriesResponseType aSite = GetValuesObject(location, variable, startDate, endDate, null);

                return(WSUtils.ConvertToXml(aSite, typeof(TimeSeriesResponseType)));
            }