divan/RMuseum/Services/IPoetPhotoSuggestionService.cs
Anas Rashid e8f2306422 Rename Ganjoor -> Diwan throughout the code
Projects (GanjooRazor -> DiwanRazor, GanjoorService.sln -> DiwanService.sln), files,
folders, classes, namespaces, settings, API routes (/api/diwan) and DB tables (Diwan*).
External addresses (ganjoor.net, github.com/ganjoor) unchanged. Migrations renamed
consistently (no pending model changes); requires a fresh database.
Upstream RUNNING_LOCALLY/SEMANTIC_SEARCH docs archived unmodified under docs/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 23:49:01 +02:00

79 lines
2.8 KiB
C#

using RMuseum.Models.Diwan.ViewModels;
using RSecurityBackend.Models.Generic;
using System;
using System.IO;
using System.Threading.Tasks;
namespace RMuseum.Services
{
/// <summary>
/// poet photo suggestion service;
/// </summary>
public interface IPoetPhotoSuggestionService
{
/// <summary>
/// return list of suggested photos for a poet
/// </summary>
/// <param name="poetId"></param>
/// <returns></returns>
Task<RServiceResult<DiwanPoetSuggestedPictureViewModel[]>> GetPoetSuggestedPhotosAsync(int poetId);
/// <summary>
/// returns a single suggested photo
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
Task<RServiceResult<DiwanPoetSuggestedPictureViewModel>> GetPoetSuggestedPhotoByIdAsync(int id);
/// <summary>
/// suggest a new photo for a poet
/// </summary>
/// <param name="poetId"></param>
/// <param name="userId"></param>
/// <param name="imageStream"></param>
/// <param name="fileName"></param>
/// <param name="title"></param>
/// <param name="description"></param>
/// <param name="srcUrl"></param>
/// <returns></returns>
Task<RServiceResult<DiwanPoetSuggestedPictureViewModel>> SuggestPhotoForPoet(int poetId, Guid userId, Stream imageStream, string fileName, string title, string description, string srcUrl);
/// <summary>
/// next unpublished suggested photo for poets
/// </summary>
/// <param name="skip"></param>
/// <returns></returns>
Task<RServiceResult<DiwanPoetSuggestedPictureViewModel>> GetNextUnmoderatedPoetSuggestedPhotoAsync(int skip);
/// <summary>
/// unpublished suggested photos count for poets
/// </summary>
/// <returns></returns>
Task<RServiceResult<int>> GetNextUnmoderatedPoetSuggestedPhotosCountAsync();
/// <summary>
/// modify a suggested photo for poets
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
Task<RServiceResult<bool>> ModifyPoetSuggestedPhotoAsync(DiwanPoetSuggestedPictureViewModel model);
/// <summary>
/// delete a suggested photo for poets
/// </summary>
/// <param name="id"></param>
/// <param name="deleteUserId"></param>
/// <param name="rejectionCause"></param>
/// <returns></returns>
Task<RServiceResult<bool>> RejectPoetSuggestedPhotosAsync(int id, Guid deleteUserId, string rejectionCause);
/// <summary>
/// delete published suggested photo
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
Task<RServiceResult<bool>> DeletePoetSuggestedPhotoAsync(int id);
}
}