Esempio n. 1
0
 //TODO: Тупо заглушки чтобы хоть как то дальше разрабатывать
 public Contact GetContactWithoutVKByName(string contactName)
 {
     Contact tmpContact = new Contact
                              {
                                  DisplayName = contactName,
                                  ContactPic =
                                      PictureDecoder.DecodeJpeg(
                                          Application.GetResourceStream(
                                              new Uri(@"/VkMessenger;component/Image/No_photo.png",
                                                      UriKind.Relative)).Stream)
                              };
     tmpContact.FillPhoneNumbers(new List<string> {"+79539123172"});
     return tmpContact;
 }
Esempio n. 2
0
        public Contact GetContactWithVKByName(string contactName)
        {
            Contact tmpContact = new Contact
                                     {
                                         DisplayName = contactName,
                                         ContactPic =
                                             PictureDecoder.DecodeJpeg(
                                                 Application.GetResourceStream(
                                                     new Uri(@"/VkMessenger;component/Image/No_photo.png",
                                                             UriKind.Relative)).Stream),
                                         LinkedUser = new User
                                                          {
                                                              FirstName = "Pavel",
                                                              LastName = "Durov",
                                                              Photo = PictureDecoder.DecodeJpeg(
                                                                  Application.GetResourceStream(
                                                                      new Uri(@"/VkMessenger;component/Image/durov.jpg",
                                                                              UriKind.Relative)).Stream),
                                                          }

                                     };
            tmpContact.FillPhoneNumbers(new List<string> { "+79539123172" });
            return tmpContact;
        }