private async void DoReportPicture(ReportContentData data)
 {
     ApplicationStateService.LastCountry = data.Country;
     await ExecuteAsync(new ReportAbusiveMedia()
     {
         MediaId = picture.PictureUri, Country = data.Country, Reason = data.Reason
     });
 }
Ejemplo n.º 2
0
 private async void DoReportComment(Guid commentId, ReportContentData data)
 {
     ApplicationStateService.LastCountry = data.Country;
     await ExecuteAsync(new ReportAbusiveComment()
     {
         CommentId = commentId, Country = data.Country, Reason = data.Reason
     });
 }
 private bool CanReportPicture(ReportContentData data)
 {
     return(picture != null && ApplicationStateService.HasUserRole(UserRole.USER));
 }