当前位置: 首页>>代码示例>>C#>>正文


C# MozuUrl.FormatUrl方法代码示例

本文整理汇总了C#中MozuUrl.FormatUrl方法的典型用法代码示例。如果您正苦于以下问题:C# MozuUrl.FormatUrl方法的具体用法?C# MozuUrl.FormatUrl怎么用?C# MozuUrl.FormatUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MozuUrl的用法示例。


在下文中一共展示了MozuUrl.FormatUrl方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: DeleteWishlistItemUrl

 /// <summary>
 /// Get Resource Url for DeleteWishlistItem
 /// </summary>
 /// <param name="wishlistId">Unique identifier of the wish list associated with the item to remove.</param>
 /// <param name="wishlistItemId">Unique identifier of the item to remove from the shopper wish list.</param>
 /// <returns>
 /// String - Resource Url
 /// </returns>
 public static MozuUrl DeleteWishlistItemUrl(string wishlistId, string wishlistItemId)
 {
     var url = "/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}";
     var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
     mozuUrl.FormatUrl( "wishlistId", wishlistId);
     mozuUrl.FormatUrl( "wishlistItemId", wishlistItemId);
     return mozuUrl;
 }
开发者ID:warwickit,项目名称:MozuFreestyle,代码行数:16,代码来源:WishlistItemUrl.cs

示例2: UpdateDocumentListUrl

				/// <summary>
        /// Get Resource Url for UpdateDocumentList
        /// </summary>
        /// <param name="documentListName"></param>
        /// <param name="responseFields"></param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl UpdateDocumentListUrl(string documentListName, string responseFields =  null)
		{
			var url = "/api/content/documentlists/{documentListName}?responseFields={responseFields}";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "documentListName", documentListName);
			mozuUrl.FormatUrl( "responseFields", responseFields);
			return mozuUrl;
		}
开发者ID:kevinwrightleft,项目名称:mozu-dotnet,代码行数:16,代码来源:DocumentListUrl.cs

示例3: GetOrderItemsUrl

 /// <summary>
 /// Get Resource Url for GetOrderItems
 /// </summary>
 /// <param name="draft">If true, retrieve the draft version of the order's items, which might include uncommitted changes to one or more order items, the order itself, or other order components.</param>
 /// <param name="orderId">Unique identifier of the order items to retrieve.</param>
 /// <returns>
 /// String - Resource Url
 /// </returns>
 public static MozuUrl GetOrderItemsUrl(bool? draft, string orderId)
 {
     var url = "/api/commerce/orders/{orderId}/items?draft={draft}";
     var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
     mozuUrl.FormatUrl( "draft", draft);
     mozuUrl.FormatUrl( "orderId", orderId);
     return mozuUrl;
 }
开发者ID:warwickit,项目名称:MozuFreestyle,代码行数:16,代码来源:OrderItemUrl.cs

示例4: GetLocationUrl

		/// <summary>
        /// Get Resource Url for GetLocation
        /// </summary>
        /// <param name="locationCode">The unique, user-defined code that identifies a location. </param>
        /// <param name="responseFields">Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve data. Attempting to update data using this parameter may cause data loss.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetLocationUrl(string locationCode, string responseFields =  null)
		{
			var url = "/api/commerce/admin/locations/{locationCode}?responseFields={responseFields}";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "locationCode", locationCode);
			mozuUrl.FormatUrl( "responseFields", responseFields);
			return mozuUrl;
		}
开发者ID:rocky0904,项目名称:mozu-dotnet,代码行数:16,代码来源:LocationUrl.cs

示例5: GetDocumentContentUrl

		/// <summary>
        /// Get Resource Url for GetDocumentContent
        /// </summary>
        /// <param name="documentId">Unique identifier for a document, used by content and document calls. Document IDs are associated with document types, document type lists, sites, and tenants.</param>
        /// <param name="documentListName">Name of content documentListName to delete</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetDocumentContentUrl(string documentListName, string documentId)
		{
			var url = "/api/content/documentlists/{documentListName}/documents/{documentId}/content";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "documentId", documentId);
			mozuUrl.FormatUrl( "documentListName", documentListName);
			return mozuUrl;
		}
开发者ID:rocky0904,项目名称:mozu-dotnet,代码行数:16,代码来源:DocumentUrl.cs

示例6: GetExtraUrl

 /// <summary>
 /// Get Resource Url for GetExtra
 /// </summary>
 /// <param name="attributeFQN">The fully qualified name of the attribute, which is a user defined attribute identifier.</param>
 /// <param name="productTypeId">Identifier of the product type whose extra is being retrieved.</param>
 /// <returns>
 /// String - Resource Url
 /// </returns>
 public static MozuUrl GetExtraUrl(string attributeFQN, int productTypeId)
 {
     var url = "/api/commerce/catalog/admin/attributedefinition/producttypes/{productTypeId}/Extras/{attributeFQN}";
     var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
     mozuUrl.FormatUrl( "attributeFQN", attributeFQN);
     mozuUrl.FormatUrl( "productTypeId", productTypeId);
     return mozuUrl;
 }
开发者ID:warwickit,项目名称:MozuFreestyle,代码行数:16,代码来源:ProductTypeExtraUrl.cs

示例7: CreateDigitalPackageUrl

				/// <summary>
        /// Get Resource Url for CreateDigitalPackage
        /// </summary>
        /// <param name="orderId">Unique identifier of the order.</param>
        /// <param name="responseFields">Use this field to include those fields which are not included by default.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl CreateDigitalPackageUrl(string orderId, string responseFields =  null)
		{
			var url = "/api/commerce/orders/{orderId}/digitalpackages?responseFields={responseFields}";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "orderId", orderId);
			mozuUrl.FormatUrl( "responseFields", responseFields);
			return mozuUrl;
		}
开发者ID:rocky0904,项目名称:mozu-dotnet,代码行数:16,代码来源:DigitalPackageUrl.cs

示例8: GetBehaviorCategoryUrl

		/// <summary>
        /// Get Resource Url for GetBehaviorCategory
        /// </summary>
        /// <param name="categoryId">Unique identifier of the category to modify.</param>
        /// <param name="responseFields">Use this field to include those fields which are not included by default.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetBehaviorCategoryUrl(int categoryId, string responseFields =  null)
		{
			var url = "/api/platform/reference/behaviors/categories/{categoryId}?responseFields={responseFields}";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.HOME_POD, false) ;
			mozuUrl.FormatUrl( "categoryId", categoryId);
			mozuUrl.FormatUrl( "responseFields", responseFields);
			return mozuUrl;
		}
开发者ID:eileenzhuang1,项目名称:mozu-dotnet,代码行数:16,代码来源:ReferenceDataUrl.cs

示例9: GetDBValueUrl

		/// <summary>
        /// Get Resource Url for GetDBValue
        /// </summary>
        /// <param name="dbEntryQuery">The database entry string to create.</param>
        /// <param name="responseFields">Use this field to include those fields which are not included by default.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetDBValueUrl(string dbEntryQuery, string responseFields =  null)
		{
			var url = "/api/platform/sitedata/{dbEntryQuery}?responseFields={responseFields}";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "dbEntryQuery", dbEntryQuery);
			mozuUrl.FormatUrl( "responseFields", responseFields);
			return mozuUrl;
		}
开发者ID:rocky0904,项目名称:mozu-dotnet,代码行数:16,代码来源:SiteDataUrl.cs

示例10: DeleteAccountNoteUrl

 /// <summary>
 /// Get Resource Url for DeleteAccountNote
 /// </summary>
 /// <param name="accountId">Unique identifier of the customer account that contains the note being deleted.</param>
 /// <param name="noteId">Unique identifier of the customer account note being deleted.</param>
 /// <returns>
 /// String - Resource Url
 /// </returns>
 public static MozuUrl DeleteAccountNoteUrl(int accountId, int noteId)
 {
     var url = "/api/commerce/customer/accounts/{accountId}/notes/{noteId}";
     var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
     mozuUrl.FormatUrl( "accountId", accountId);
     mozuUrl.FormatUrl( "noteId", noteId);
     return mozuUrl;
 }
开发者ID:warwickit,项目名称:MozuFreestyle,代码行数:16,代码来源:CustomerNoteUrl.cs

示例11: GetAddressSchemaUrl

		/// <summary>
        /// Get Resource Url for GetAddressSchema
        /// </summary>
        /// <param name="countryCode">The 2-letter geographic code representing the country for the physical or mailing address. Currently limited to the US.</param>
        /// <param name="responseFields">Use this field to include those fields which are not included by default.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetAddressSchemaUrl(string countryCode =  null, string responseFields =  null)
		{
			var url = "/api/platform/reference/addressschema/{countryCode}?responseFields={responseFields}";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.HOME_POD, false) ;
			mozuUrl.FormatUrl( "countryCode", countryCode);
			mozuUrl.FormatUrl( "responseFields", responseFields);
			return mozuUrl;
		}
开发者ID:eileenzhuang1,项目名称:mozu-dotnet,代码行数:16,代码来源:ReferenceDataUrl.cs

示例12: GetWishlistByNameUrl

 /// <summary>
 /// Get Resource Url for GetWishlistByName
 /// </summary>
 /// <param name="customerAccountId"></param>
 /// <param name="wishlistName"></param>
 /// <returns>
 /// String - Resource Url
 /// </returns>
 public static MozuUrl GetWishlistByNameUrl(int customerAccountId, string wishlistName)
 {
     var url = "/api/commerce/wishlists/customers/{customerAccountId}/{wishlistName}";
     var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
     mozuUrl.FormatUrl( "customerAccountId", customerAccountId);
     mozuUrl.FormatUrl( "wishlistName", wishlistName);
     return mozuUrl;
 }
开发者ID:warwickit,项目名称:MozuFreestyle,代码行数:16,代码来源:WishlistUrl.cs

示例13: GetChannelUrl

		/// <summary>
        /// Get Resource Url for GetChannel
        /// </summary>
        /// <param name="code">User-defined code that uniqely identifies the channel group.</param>
        /// <param name="responseFields">Use this field to include those fields which are not included by default.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetChannelUrl(string code, string responseFields =  null)
		{
			var url = "/api/commerce/channels/{code}?responseFields={responseFields}";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "code", code);
			mozuUrl.FormatUrl( "responseFields", responseFields);
			return mozuUrl;
		}
开发者ID:rocky0904,项目名称:mozu-dotnet,代码行数:16,代码来源:ChannelUrl.cs

示例14: GetFileUrl

		/// <summary>
        /// Get Resource Url for GetFile
        /// </summary>
        /// <param name="applicationKey"></param>
        /// <param name="fileName"></param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetFileUrl(string applicationKey, string fileName)
		{
			var url = "/api/platform/appdev/filebasedpackage/packages/{applicationKey}?fileName={fileName}";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.HOME_POD, false) ;
			mozuUrl.FormatUrl( "applicationKey", applicationKey);
			mozuUrl.FormatUrl( "fileName", fileName);
			return mozuUrl;
		}
开发者ID:eileenzhuang1,项目名称:mozu-dotnet,代码行数:16,代码来源:PackageUrl.cs

示例15: GetCategoryUrl

 /// <summary>
 /// Get Resource Url for GetCategory
 /// </summary>
 /// <param name="allowInactive">If true, allow inactive categories to be retrieved in the category list response. If false, the categories retrieved will not include ones marked inactive.</param>
 /// <param name="categoryId">Unique identifier for the storefront container used to organize products.</param>
 /// <returns>
 /// String - Resource Url
 /// </returns>
 public static MozuUrl GetCategoryUrl(bool? allowInactive, int categoryId)
 {
     var url = "/api/commerce/catalog/storefront/categories/{categoryId}?allowInactive={allowInactive}";
     var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
     mozuUrl.FormatUrl( "allowInactive", allowInactive);
     mozuUrl.FormatUrl( "categoryId", categoryId);
     return mozuUrl;
 }
开发者ID:warwickit,项目名称:MozuFreestyle,代码行数:16,代码来源:CategoryUrl.cs


注:本文中的MozuUrl.FormatUrl方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。