Example #1
0
        public void SetMessagePreferences()
        {
            SetMessagePreferencesCall api      = new SetMessagePreferencesCall(apiContext);
            ASQPreferencesType        prefType = new ASQPreferencesType();

            api.SetMessagePreferences(prefType);
        }
Example #2
0
        public void GetMessagePreferences()
        {
            GetUserCall userApi = new GetUserCall(this.apiContext);

            DetailLevelCodeType[] detailLevels = new DetailLevelCodeType[] { DetailLevelCodeType.ReturnAll };
            userApi.DetailLevelList = new DetailLevelCodeTypeCollection(detailLevels);
            UserType user = userApi.GetUser();

            Assert.IsNotNull(user.Email);
            Assert.IsNotNull(user.EIASToken);
            GetMessagePreferencesCall api = new GetMessagePreferencesCall(this.apiContext);

            api.Site = SiteCodeType.US;
            //
            ASQPreferencesType resp = api.GetMessagePreferences(user.UserID, true);

            Assert.IsNotNull(resp);
            Console.WriteLine("T_100_GetMessagesPreferencesLibrary: " + resp.ToString());
        }
 public void SetMessagePreferences()
 {
     SetMessagePreferencesCall api = new SetMessagePreferencesCall(apiContext);
     ASQPreferencesType prefType = new ASQPreferencesType();
     api.SetMessagePreferences(prefType);
 }
Example #4
0
        /// <summary>
        /// Enables a seller to add custom Ask Seller a Question (ASQ) subjects to their
        /// Ask a Question page, or to reset any custom subjects to their default values.
        /// </summary>
        ///
        /// <param name="ASQPreferences">
        /// This container can be used to set customized ASQ subjects, or it can be used to reset the ASQ subjects to the eBay defaults. Up to nine customized ASQ subjects can be set.
        /// </param>
        ///
        public void SetMessagePreferences(ASQPreferencesType ASQPreferences)
        {
            this.ASQPreferences = ASQPreferences;

            Execute();
        }
        /// <summary>
        /// Enables a seller to add custom Ask Seller a Question (ASQ) subjects to their
        /// Ask a Question page, or to reset any custom subjects to their default values.
        /// </summary>
        /// 
        /// <param name="ASQPreferences">
        /// Contains custom ASQ subjects or a flag to reset those
        /// subjects to their default values.
        /// </param>
        ///
        public void SetMessagePreferences(ASQPreferencesType ASQPreferences)
        {
            this.ASQPreferences = ASQPreferences;

            Execute();
        }