private Abstractions.Website Convert(ContactWebsite contactWebsite) { Abstractions.Website website = new Abstractions.Website(); website.Address = contactWebsite.RawValue; // should be replace with Uri? return(website); }
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; }