public SpeakerResource(Guid id, int version, string name, string phoneNumber, string emailAddress, string bio) { Version = version; Name = name; PhoneNumber = phoneNumber; EmailAddress = emailAddress; Bio = bio; Id = id; self = new Link(relName: ParamoreGlobals.Self, resourceName: "speaker", id: id.ToString()); Links = new List<Link>{self}; }
public VenueResource(Guid id, int version, string name, string address, string mapURN, string contact) { Id = id; self = new Link(relName: ParamoreGlobals.Self, resourceName: "venue", id: id.ToString()); MapURN = mapURN; map = new Link(relName: ParamoreGlobals.Map, href: mapURN); Links = new List<Link>{self, map}; this.Version = version; this.Name = name; this.Address = AddressResource.Parse(address); this.Contact = ContactResource.Parse(contact); }