sozsoft-platform/api/src/Sozsoft.Platform.Application.Contracts/Intranet/CreateSocialPostInput.cs

38 lines
920 B
C#
Raw Normal View History

2026-05-06 13:47:18 +00:00
using System.Collections.Generic;
namespace Sozsoft.Platform.Intranet;
public class CreateSocialPostInput
{
public string Content { get; set; } = string.Empty;
/// <summary>
/// JSON string containing location data (name, address, lat, lng, placeId).
/// </summary>
public string? LocationJson { get; set; }
public CreateSocialPostMediaInput? Media { get; set; }
}
public class CreateSocialPostMediaInput
{
/// <summary>
/// "image", "video", or "poll"
/// </summary>
public string Type { get; set; } = string.Empty;
/// <summary>
/// URLs for image/video type media.
/// </summary>
public string[]? Urls { get; set; }
// Poll fields
public string? PollQuestion { get; set; }
public List<CreateSocialPollOptionInput>? PollOptions { get; set; }
}
public class CreateSocialPollOptionInput
{
public string Text { get; set; } = string.Empty;
}