Esempio n. 1
0
        /// <summary>
        /// Attempts to retrieve a record using the given parameters using a POST.
        /// Arguments except the "parameters" Dictionary are optional and context sensitive. An exception will be thrown if an invalid parameter is given.
        /// </summary>
        /// <param name="parameters">Parameters.</param>
        /// <param name="subscriberID">Subscriber I.</param>
        /// <param name="jobSearchID">Job search I.</param>
        /// <param name="batchID">Batch I.</param>
        /// <returns>If successful, the correct Result record for the specified type.</returns>
        public virtual dynamic Submit(Dictionary<String,String> parameters,
		             String subscriberID = "",
		             String jobSearchID = "",
		             String batchID = "")
        {
            this.Parameters = parameters;
            this.subscriberID = subscriberID.Equals("") ? this.subscriberID : subscriberID;
            this.jobSearchID = jobSearchID.Equals("") ? this.jobSearchID : jobSearchID;
            this.batchID = batchID.Equals("") ? this.batchID : batchID;
            this.operatingMode = APIResourceMode.Submit;
            return this;
        }
Esempio n. 2
0
        /// <summary>
        /// Attempts to retrieve a record using the given parameters using a GET.
        /// Arguments are optional and context sensitive. An exception will be thrown if an invalid parameter is given.
        /// </summary>
        /// <param name="subscriberID">Subscriber ID.</param>
        /// <param name="jobSearchID">Job Search ID.</param>
        /// <param name="batchID">Batch ID.</param>
        /// <returns>If found, the correct Record for the specified type.</returns>
        public virtual dynamic Retrieve(String subscriberID = "",
		                            String jobSearchID = "",
		                            String batchID = "")
        {
            this.subscriberID = subscriberID.Equals("") ? this.subscriberID : subscriberID;
            this.jobSearchID = jobSearchID.Equals("") ? this.jobSearchID : jobSearchID;
            this.batchID = batchID.Equals("") ? this.batchID : batchID;
            this.operatingMode = APIResourceMode.Retrieve;
            return this;
        }