예제 #1
0
 public GetCommand(GBaseService service,
                   GBaseUriFactory uriFactory,
                   string url)
     : base(service, uriFactory)
 {
     this.url = url;
 }
예제 #2
0
 public DeleteCommand(GBaseService service,
                      GBaseUriFactory uriFactory,
                      string uri)
     : base(service, uriFactory)
 {
     this.uri = new Uri(uri);
 }
예제 #3
0
 public QueryCommand(GBaseService service,
                     GBaseUriFactory uriFactory,
                     string queryString)
     : base(service, uriFactory)
 {
     this.queryString = queryString;
 }
예제 #4
0
        //////////////////////////////////////////////////////////////////////
        /// <summary>Parses options</summary>
        /// <param name="argName">option name</param>
        /// <param name="argValue">option value</param>
        /// <returns>true if the option was understood and parsed, false
        /// if the option was not understood.</returns>
        //////////////////////////////////////////////////////////////////////
        protected virtual bool ParseArg(string argName, string argValue)
        {
            switch (argName)
            {
            case "--url":
                uriFactory = new GBaseUriFactory(new Uri(new Uri(argValue), "/base/"));
                return(true);

            case "--key":
                developerKey = argValue;
                return(true);
            }
            return(false);
        }
예제 #5
0
 protected CommandBase(GBaseService service, GBaseUriFactory uriFactory)
 {
     this.service    = service;
     this.uriFactory = uriFactory;
 }
예제 #6
0
 public BatchCommand(GBaseService service,
                     GBaseUriFactory uriFactory)
     : base(service, uriFactory)
 {
 }
예제 #7
0
 public UpdateCommand(GBaseService service,
                      GBaseUriFactory uriFactory)
     : base(service, uriFactory)
 {
 }
예제 #8
0
 public InsertCommand(GBaseService service, GBaseUriFactory uriFactory)
     : base(service, uriFactory)
 {
 }