Exemplo n.º 1
0
		public async Task SaveConferenceAsync (Conference conference)
		{
			var existingConference = await LoadConferenceAsync (conference.Slug);
			if (existingConference == null) {
				await _sqLiteConnection.InsertAsync (conference);
			} else {
				conference.Id = existingConference.Id;
				await _sqLiteConnection.UpdateAsync (conference);
			}
		}
Exemplo n.º 2
0
		public Conference (Conference conference)
		{
			this.IsAddedToSchedule = conference.IsAddedToSchedule;
			this.City = conference.City;
			this.Country = conference.Country;
			this.DateRange = conference.DateRange;
			this.Description = conference.Description;
			this.End = conference.End;
			this.ImageUrl = conference.ImageUrl;
			this.ImageUrlSquare = conference.ImageUrlSquare;
			this.IsOnline = conference.IsOnline;
			this.Latitude = conference.Latitude;
			this.Longitude = conference.Longitude;
			this.Name = conference.Name;
			this.PostalArea = conference.PostalArea;
			this.Start = conference.Start;
			this.State = conference.State;
			this.StreetName = conference.StreetName;
			this.StreetNumber = conference.StreetNumber;
			this.Slug = conference.Slug;
		}