Exemple #1
0
        public string GetURL(OneNetContext context)
        {
            var url      = URIUtils.fmtURI(URI, context);
            var webUtils = new WebUtils();

            return(webUtils.BuildGetUrl(url, otherParameters));
        }
Exemple #2
0
        public String GetURL(OneNetContext context)
        {
            context.setContext(DEVICE_ID, DeviceID);
            var url      = URIUtils.fmtURI(URI, context);
            var webUtils = new WebUtils();

            return(webUtils.BuildGetUrl(url, otherParameters));
        }
Exemple #3
0
        public String GetURL(OneNetContext context)
        {
            context.setContext(CMD_UUID, CmdUuid);
            var url      = URIUtils.fmtURI(URI, context);
            var webUtils = new WebUtils();

            return(webUtils.BuildGetUrl(url, otherParameters));
        }
        public String GetURL(OneNetContext context)
        {
            otherParameters.Add(Register_Code, RegisterCode);
            var url      = URIUtils.fmtURI(URI, context);
            var webUtils = new WebUtils();

            return(webUtils.BuildGetUrl(url, otherParameters));
        }
        public string GetURL(OneNetContext context)
        {
            otherParameters.Add(DEVICE_ID, DeviceID.ToString());
            otherParameters.Add(DATASTREAM_ID, DatastreamId);

            var url      = URIUtils.fmtURI(URI, context);
            var webUtils = new WebUtils();

            return(webUtils.BuildGetUrl(url, otherParameters));
        }
        public string GetURL(OneNetContext context)
        {
            otherParameters.Add("title", Title);
            otherParameters.Add("page", Page.ToString());
            otherParameters.Add("per_page", Per_Page.ToString());
            var url      = URIUtils.fmtURI(URI, context);
            var webUtils = new WebUtils();

            return(webUtils.BuildGetUrl(url, otherParameters));
        }
Exemple #7
0
        public string GetURL(OneNetContext context)
        {
            var url = URIUtils.fmtURI(URI, context);

            otherParameters.Add("page", Page.ToString());
            otherParameters.Add("per_page", PerPage.ToString());
            otherParameters.Add("dev_id", DeviceId);
            otherParameters.Add("key", Key);

            var webUtils = new WebUtils();

            return(webUtils.BuildGetUrl(url, otherParameters));
        }
Exemple #8
0
        public String GetURL(OneNetContext context)
        {
            context.setContext(DEVICE_ID, DeviceID);
            otherParameters.Add(DatastreamID, DataStreamId);
            otherParameters.Add(START, StartTimeTxt);
            otherParameters.Add(END, EndTimeTxt);
            otherParameters.Add(LIMIT, Limit);
            otherParameters.Add(CURSOR, Cursor);
            otherParameters.Add(INTERVAL, Interval);
            otherParameters.Add(METHOD, Method);
            otherParameters.Add(FIRST, First);

            var url      = URIUtils.fmtURI(URI, context);
            var webUtils = new WebUtils();

            return(webUtils.BuildGetUrl(url, otherParameters));
        }
Exemple #9
0
        public String GetURL(OneNetContext context)
        {
            otherParameters.Add(Key_WORDS, Keywords);
            if (OnLine.HasValue)
            {
                otherParameters.Add(ONLINE, OnLine.ToString());
            }
            if (Private.HasValue)
            {
                otherParameters.Add(PRIVATE, Private.ToString());
            }
            otherParameters.Add(PAGE, Page.ToString());
            otherParameters.Add(PER_PAGE, PageSize.ToString());
            otherParameters.Add(TAG, Tag);

            context.setContext(DEVICE_ID, DeviceIds);

            var url      = URIUtils.fmtURI(URI, context);
            var webUtils = new WebUtils();

            return(webUtils.BuildGetUrl(url, otherParameters));
        }
        public String GetURL(OneNetContext context)
        {
            otherParameters.Add("start", Start.ToString("s"));
            otherParameters.Add("device_id", DeviceID);
            otherParameters.Add("datastream_id", DataStreamId);
            if (End.HasValue)
            {
                otherParameters.Add("end", End.Value.ToString("s"));
            }
            otherParameters.Add("limit", Limit.ToString());
            otherParameters.Add("cursor", Cursor);
            if (Duration.HasValue)
            {
                otherParameters.Add("duration", Duration.ToString());
            }
            otherParameters.Add("page", Page.ToString());

            var url      = URIUtils.fmtURI(URI, context);
            var webUtils = new WebUtils();

            return(webUtils.BuildGetUrl(url, otherParameters));
        }