public GroupController() { CollectionController collectionController = new CollectionController(); UserProfileController userProfileController = new UserProfileController(); if (_list == null) { _list = new List <Group> { new Group() { Id = Guid.NewGuid(), Name = "Família", Collection = collectionController.Get("PKM99"), Participants = userProfileController.Get() }, new Group() { Id = Guid.NewGuid(), Name = "Trabalho", Collection = collectionController.Get("FWC18"), Participants = userProfileController.Get().Where(x => x.Login.Equals("lucasbbudelon") || x.Login.Equals("lady")).ToList() }, new Group() { Id = Guid.NewGuid(), Name = "Faculdade", Collection = collectionController.Get("TLK94"), Participants = userProfileController.Get().Where(x => x.Login.Equals("lucasbbudelon") || x.Login.Equals("veri")).ToList() } }; } }
//// POST: api/Default //[HttpPost] //public void Post([FromBody]string value) //{ //} //// PUT: api/Default/5 //[HttpPut("{id}")] //public void Put(int id, [FromBody]string value) //{ //} #region PRIVATE private Album GetAlbum(string codeCollection, string userProfileLogin) { var collection = new CollectionController().Get(codeCollection); var userProfile = new UserProfileController().GetByLogin(userProfileLogin); return(new Album() { Id = Guid.NewGuid(), Collection = collection, UserProfile = userProfile, Items = GetItems(collection) }); }
public UserProfileController() { CollectionController collectionController = new CollectionController(); if (_list == null) { _list = new List <UserProfile> { new UserProfile() { Login = "******", Name = "Lucas B Budelon", Image = "https://scontent-gru2-1.xx.fbcdn.net/v/t1.0-9/20882022_1857936974421309_4943349701368875289_n.jpg?_nc_cat=0&_nc_eui2=AeHpeiUShw7uOQJkJYKzhKzZaBBEHxqb05cMXQoJQdHyDCegedLv8nOu-myudtl_6XJeYlfiFnkZNdnLnUcLZC2GSIwkdUCJvLbgMP-cCamplg&oh=1d6ffc310b03a47d0d75fc218fd48aac&oe=5BA7E35F", CurrentLatitude = -31.997976f, CurrentLongitude = 115.762877f, Distance = 100 }, new UserProfile() { Login = "******", Name = "Veridiana Hass Teixeira Budelon", Image = "https://scontent-gru2-1.xx.fbcdn.net/v/t1.0-9/16105855_1198089420266885_6544586671787053965_n.jpg?_nc_cat=0&_nc_eui2=AeHpIL7mgj8dyqFFF2yVgZ8hNjdLP2n9vS3Iol7hXHatUjB3s4UdZBY67a9O51uDO0BKnc7B6NldHumzpUctn5xodamLFLjuwG338jnWuZKKqg&oh=dc1e9bb6fa96959be5032a6b3ea298bd&oe=5BE8DAD9", CurrentLatitude = -31.99212f, CurrentLongitude = 115.763228f, Distance = 50 }, new UserProfile() { Login = "******", Name = "Lady", Image = "https://scontent-gru2-1.xx.fbcdn.net/v/t1.0-9/35156818_1701020169973805_6532166140729229312_n.jpg?_nc_cat=0&_nc_eui2=AeFC-K0_bBEcSUlxpeY52_TaDpQEY43uXIONX3mhwIJxO9cbQHF7hzmwKnavQpjlCSJ2vYre3Km6Ji7nZnFjMR4de4kRLQT-pR6SyctHLvcafg&oh=2ff11f440b23c36e8d74dd54c508cea7&oe=5BB12194", CurrentLatitude = -31.997976f, CurrentLongitude = 115.762877f, Distance = 70 }, new UserProfile() { Login = "******", Name = "Isadora", Image = "https://lh3.googleusercontent.com/R81VYxlniMxuzCg1gvJmCN8RXKwac9JL4ycQDpBGbnakN2rMzmnLsZ14ED03znr4hPiGvBxzxMq9a9-Khw8s0jywzPf1KZ8c14sNEIK8pPjW_-sfiewHRIk6qYkgJaucQb-pxgZP2u3kDcRToQaRDdfVJbKNidc0a0OgdRUHOtAgDZ7xIuEMg40Ato_lOz3xzGoGfDEcqIX7vViuZHVdZlJrSbHtPGdxv1yh2M30I-5USqOwjXfd5vaBCh2uLa5YTOYvWbk3vlV3_FGVEP7uZjDg1RHBhGYAr4K46ySYv1puTE-WJI-dc3_y-VmeL3Nm0idaE_2-T4qrglJ7K0LZAwxFGZYosh_l9WkaVvTHVLzQXuZ561cP-2QhtsvA_CDStlc6V5tBgghdVt4zPyWVhGqtErxFJmBN-cxQOqC-UR5NZGbj0wmk8wPevNENEv1XRtEH8xXa4tl4E8YCJNQhYUYN0tkYQ3XyL2x9TI5XQ1DZ0hhLQr8okDFJJw8rNUKdkWu6QkGCyOlUBPEoTz1184kY-D_NJ8zIYiaDnciVpr050aOLT3Azo82uAuiC-05dclWX2ICcU-z9tqAj0cfLzRvlYWkkNbRbIxTyO1dT=w478-h635-no", CurrentLatitude = -31.99212f, CurrentLongitude = 115.763228f, Distance = 97 } }; } }