Exemple #1
0
        private void updateHosts()
        {
            if (!UcConfig.ApiUpdateHosts)
            {
                writeForbidden();
            }
            var hosts = new UcHosts(Args.FormData);

            writeEnd(UpdateHosts(hosts));
        }
Exemple #2
0
        protected string UpdateHosts()
        {
            if (!_ucConfig.ApiUpdateHosts)
            {
                return(API_RETURN_FORBIDDEN);
            }
            var hosts = new UcHosts(this.FormData);
            var temp  = this._ucApi.UpdateHosts(hosts);

            return(Write(temp));
        }
Exemple #3
0
 public override ApiReturn UpdateHosts(UcHosts hosts)
 {
     throw new NotImplementedException();
 }
Exemple #4
0
 public abstract ApiReturn UpdateHosts(UcHosts hosts);
Exemple #5
0
        public override ApiReturn UpdateHosts(UcHosts hosts)
        {
            Console.WriteLine($"{nameof(UpdateHosts)}");

            return(ApiReturn.Success);
        }