예제 #1
0
 public License(v1_0.License license)
 {
     Id   = license.Id;
     Name = license.Name;
     if (license.Text != null)
     {
         Text = new LicenseText
         {
             Content = license.Text
         };
     }
     Url = license.Url;
 }
예제 #2
0
 public License(v1_2.License license)
 {
     Id   = license.Id;
     Name = license.Name;
     if (license.Text != null)
     {
         Text = new LicenseText
         {
             Content     = license.Text.Content,
             ContentType = license.Text.ContentType,
             Encoding    = license.Text.Encoding
         };
     }
     Url = license.Url;
 }