public List <string> GetSupportedContentTypesForFlatFiles(AmazonRegion region)
 {
     if (region == AmazonRegion.NorthAmerica || region == AmazonRegion.Europe)
     {
         return(new List <string> {
             "text/tab-separated-values; charset=iso-8859-1"
         });
     }
     else if (region == AmazonRegion.Japan)
     {
         return(new List <string> {
             "text/tab-separated-values; charset=Shift_JIS"
         });
     }
     else if (region == AmazonRegion.China)
     {
         return(new List <string> {
             "text/tab-separated-values;charset=UTF-8", "text/tab-separated-values;charset=UTF-16"
         });
     }
     else
     {
         throw new NotSupportedException(
                   $"Amazon region '{region.ToString()}' not supported by EasyMwsClient due to unknown ContentType that should be used to submit a feed to amazon");
     }
 }
Example #2
0
 public static Amazon.RegionEndpoint GetAmazonRegion(this AmazonRegion _)
 => Amazon.RegionEndpoint.GetBySystemName(GetAmazonSystemNameEx(_.ToString()));