예제 #1
0
 private Abstractions.Website Convert(ContactWebsite contactWebsite)
 {
     Abstractions.Website website = new Abstractions.Website();
     website.Address = contactWebsite.RawValue; // should be replace with Uri?
     return(website);
 }
예제 #2
0
    internal static Website GetWebsite(ICursor c, Resources resources)
    {
      Website w = new Website();
      w.Address = c.GetString(WebsiteData.Url);

      //WebsiteDataKind kind = (WebsiteDataKind)c.GetInt (c.GetColumnIndex (CommonColumns.Type));
      //w.Type = kind.ToWebsiteType();
      //w.Label = (kind != WebsiteDataKind.Custom)
      //            ? resources.GetString ((int) kind)
      //            : c.GetString (CommonColumns.Label);

      return w;
    }