/// <summary>
		/// Retrieves Selling Manager templates.
		/// This call is subject to change without notice; the
		/// deprecation process is inapplicable to this call.
		/// </summary>
		/// 
		/// <param name="SaleTemplateIDList">
		/// The ID of the template whose data will be returned.
		/// A SaleTemplateID is the ID of a Selling Manager template.
		/// A Selling Manager template contains the data needed to list an item.
		/// One or more template IDs can be specified, each in
		/// its own container.
		/// You can obtain a SaleTemplateID by calling GetSellingManagerInventory.
		/// </param>
		///
		public SellingManagerTemplateDetailsTypeCollection GetSellingManagerTemplates(Int64Collection SaleTemplateIDList)
		{
			this.SaleTemplateIDList = SaleTemplateIDList;

			Execute();
			return ApiResponse.SellingManagerTemplateDetailsArray;
		}
		/// <summary>
		/// Renames, removes, or restores the specified My Messages folders for
		/// a given user.
		/// </summary>
		/// 
		/// <param name="Operation">
		/// Indicates the type of operation to perform on a
		/// specified My Messages folder. Operations include creating,
		/// renaming, removing, and restoring folders. Operations
		/// cannot be performed on the Inbox and Sent folders.
		/// </param>
		///
		/// <param name="FolderIDList">
		/// An ID that uniquely identifies the My Messages
		/// folder to perform the operation on. This value is set by
		/// eBay and cannot be changed. Retrieve FolderIDs
		/// by calling GetMyMessages with a DetailLevel of
		/// ReturnSummary. Inbox is FolderID = 0, and Sent is
		/// FolderID = 1.
		/// </param>
		///
		/// <param name="FolderNameList">
		/// The name of a specified My Messages folder. Depending
		/// on the specified Operation, the value is an existing
		/// folder name or a new folder name. Retrieve existing
		/// FolderNames by calling GetMyMessages with a DetailLevel
		/// of ReturnSummary. Inbox is FolderID = 0, and Sent is
		/// FolderID = 1.
		/// </param>
		///
		public void ReviseMyMessagesFolders(MyMessagesFolderOperationCodeType Operation, Int64Collection FolderIDList, StringCollection FolderNameList)
		{
			this.Operation = Operation;
			this.FolderIDList = FolderIDList;
			this.FolderNameList = FolderNameList;

			Execute();
			
		}
Beispiel #3
0
        } // Read

        public static unsafe uint Read(this NativeReader reader, uint offset, out Int64Collection values)
        {
            values = new Int64Collection(reader, offset);
            uint count;

            offset = reader.DecodeUnsigned(offset, out count);
            offset = checked (offset + count * sizeof(Int64));
            return(offset);
        } // Read
Beispiel #4
0
        public static long[] ToArray(this Int64Collection collection, Type enumType = null)
        {
            int count = collection.Count;

            long[] result;
            if (enumType != null)
            {
                Debug.Assert(enumType.IsEnum);
                result = (long[])Array.CreateInstance(enumType, count);
            }
            else
            {
                result = new long[count];
            }
            int i = 0;

            foreach (long element in collection)
            {
                result[i++] = element;
            }
            Debug.Assert(i == count);
            return(result);
        }
Beispiel #5
0
        /// <summary>
        /// Reads a long array from the stream.
        /// </summary>
        public Int64Collection ReadInt64Array(string fieldName)
        {
            bool isNil = false;

            Int64Collection values = new Int64Collection();
                                    
            if (BeginField(fieldName, true, out isNil))
            {                                
                PushNamespace(Namespaces.OpcUaXsd);
                
                while (MoveToElement("Int64"))
                {
                    values.Add(ReadInt64("Int64"));
                }

                // check the length.
                if (m_context.MaxArrayLength > 0 && m_context.MaxArrayLength < values.Count)
                {
                    throw new ServiceResultException(StatusCodes.BadEncodingLimitsExceeded);
                }

                PopNamespace();

                EndField(fieldName);
                return values;
            }

            if (isNil)
            {
                return null;
            }

            return values;
        }
Beispiel #6
0
        } // Read

        public static unsafe uint Read(this NativeReader reader, uint offset, out Int64Collection values)
        {
            values = new Int64Collection(reader, offset);
            uint count;
            offset = reader.DecodeUnsigned(offset, out count);
            offset = checked(offset + count * sizeof(Int64));
            return offset;
        } // Read
        /// <summary>
        /// Reads a long array from the stream.
        /// </summary>
        public Int64Collection ReadInt64Array(string fieldName)
        {
            int length = ReadArrayLength();

            if (length == -1)
            {
                return null;
            }

            Int64Collection values = new Int64Collection(length);

            for (int ii = 0; ii < length; ii++)
            {
                values.Add(ReadInt64(null));
            }

            return values;
        }
        /// <summary>
        /// Retrieves Selling Manager templates.
        /// This call is subject to change without notice; the
        /// deprecation process is inapplicable to this call.
        /// </summary>
        ///
        /// <param name="SaleTemplateIDList">
        /// The ID of the template whose data will be returned.
        /// A SaleTemplateID is the ID of a Selling Manager template.
        /// A Selling Manager template contains the data needed to list an item.
        /// One or more template IDs can be specified, each in
        /// its own container.
        /// You can obtain a <b>SaleTemplateID</b> by calling <b>GetSellingManagerInventory</b>.
        /// </param>
        ///
        public SellingManagerTemplateDetailsTypeCollection GetSellingManagerTemplates(Int64Collection SaleTemplateIDList)
        {
            this.SaleTemplateIDList = SaleTemplateIDList;

            Execute();
            return(ApiResponse.SellingManagerTemplateDetailsArray);
        }
 /// <summary>
 /// For backward compatibility with old wrappers.
 /// </summary>
 public void ReviseMyMessagesFolders(MyMessagesFolderOperationCodeType Operation, StringCollection FolderNameList, Int64Collection FolderIDList)
 {
     this.Operation      = Operation;
     this.FolderNameList = FolderNameList;
     this.FolderIDList   = FolderIDList;
     Execute();
 }
        /// <summary>
        /// Reads a long array from the stream.
        /// </summary>
        public Int64Collection ReadInt64Array(string fieldName)
        {
            var values = new Int64Collection();

            List<object> token = null;

            if (!ReadArrayField(fieldName, out token))
            {
                return values;
            }

            for (int ii = 0; ii < token.Count; ii++)
            {
                try
                {
                    m_stack.Push(token[ii]);
                    values.Add(ReadInt64(null));
                }
                finally
                {
                    m_stack.Pop();
                }
            }

            return values;
        }