Пример #1
0
 bool CompareSize(OpenAsset.RestClient.Library.Noun.Size first, OpenAsset.RestClient.Library.Noun.Size second)
 {
     if (first.Id != second.Id)
     {
         return(false);
     }
     if (first.Name != second.Name)
     {
         return(false);
     }
     return(true);
 }
Пример #2
0
 // Size Generics
 OpenAsset.RestClient.Library.Noun.Size SetupSize()
 {
     OpenAsset.RestClient.Library.Noun.Size item = new OpenAsset.RestClient.Library.Noun.Size();
     item.Name         = "RESTClient Test Size";
     item.Postfix      = "rst";
     item.FileFormat   = "jpg";           // options: bmp, gif, jpg, png, tif, tiff
     item.Colourspace  = "rgb";
     item.Width        = 250;
     item.Height       = 250;
     item.AlwaysCreate = false;
     item.XResolution  = 72;
     return(item);
 }
Пример #3
0
 OpenAsset.RestClient.Library.Noun.Size ModifySize(OpenAsset.RestClient.Library.Noun.Size item)
 {
     item.Name = "RESTClient Test Size - PUT Test #" + Guid.NewGuid().ToString();
     return(item);
 }