Example #1
0
 private async Task SendTextWallEntry()
 {
     var info = new TextWallEntryInfo
     {
         Author  = _userInfo.GetUserName(),
         Content = TextBoxContent,
         Title   = TextBoxContent.Substring(0, Math.Min(TextBoxContent.Length, 25)) + "..."
     };
     var wallEntry = _creator.CreateTextWallEntry(info);
     await _repo.SaveAsync(wallEntry);
 }
Example #2
0
        private async void Send()
        {
            SendButtonIsEnabled = false;
            await _storageProvider.SaveToPhotoLibraryAsync(_imageStream);

            var entryInfo = new ImageWallEntryInfo
            {
                Author  = _userData.GetUserName(),
                Title   = "Image",
                Content = _imageStream
            };
            var entry = _creator.CreateImageWallEntry(entryInfo);
            await _repo.SaveAsync(entry);

            SendButtonIsEnabled = true;
        }