コード例 #1
0
        //Venue flow
        public async Task GetAllVenuesAsync()
        {
            var venueClient = GetVenueServiceClient(UserInfo.Username, UserInfo.Token);

            var venues = await venueClient.GetAllAsync();

            var list = new List <VenueModel>();

            foreach (var item in venues)
            {
                list.Add(new VenueModel
                {
                    Id          = item.Id,
                    Name        = item.Name,
                    Description = item.Description,
                    Address     = item.Address,
                    Phone       = item.Phone
                });
            }

            Venues.Clear();
            Venues.AddRange(list);
        }
コード例 #2
0
 public MapModel(IEnumerable <VenueTeamRow> venues) : this()
 {
     Venues.AddRange(venues);
     PrepareAllVenues();
 }