37 lines
920 B
C#
37 lines
920 B
C#
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;
|
|
}
|