Exemplo n.º 1
0
        public Api WithVersion(ApiVersion apiVersion)
        {
            this.Version = apiVersion;

            this.validations = null;
            this.redemptions = null;
            this.events      = null;
            this.promotions  = null;
            this.consents    = null;
            this.customers   = null;

            return(this);
        }
Exemplo n.º 2
0
        public Api WithHost(string host)
        {
            this.Host        = host;
            this.validations = null;
            this.redemptions = null;
            this.events      = null;
            this.promotions  = null;
            this.consents    = null;
            this.customers   = null;

            if (host == null)
            {
                this.Host = Core.Constants.HostApi;
            }

            return(this);
        }