/* Options:
Date: 2024-11-21 16:48:19
Version: 8.23
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://api.bokamera.se
//GlobalNamespace:
//MakePartial: True
//MakeVirtual: True
//MakeInternal: False
//MakeDataContractsExtensible: False
//AddNullableAnnotations: False
//AddReturnMarker: True
//AddDescriptionAsComments: True
//AddDataContractAttributes: False
//AddIndexesToDataMembers: False
//AddGeneratedCodeAttributes: False
//AddResponseStatus: False
//AddImplicitVersion:
//InitializeCollections: True
//ExportValueTypes: False
IncludeTypes: UpdateNewsItem.*
//ExcludeTypes:
//AddNamespaces:
//AddDefaultXmlNamespace: http://schemas.servicestack.net/types
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using System.Globalization;
using ServiceStack.Data;
using System.IO;
using BokaMera.API.ServiceModel.Interfaces;
using BokaMera.API.ServiceModel.Dtos;
namespace BokaMera.API.ServiceModel.Dtos
{
public partial class NewsItemQueryResponse
{
///
///The news item id
///
[ApiMember(Description="The news item id")]
public virtual int Id { get; set; }
///
///Heading of the news item
///
[ApiMember(Description="Heading of the news item")]
public virtual string Heading { get; set; }
///
///Body of the news item
///
[ApiMember(Description="Body of the news item")]
public virtual string Body { get; set; }
///
///Url to a image associated with the news
///
[ApiMember(Description="Url to a image associated with the news")]
public virtual Uri ImageUrl { get; set; }
///
///The timestamp from which the newsitem should be visible from
///
[ApiMember(Description="The timestamp from which the newsitem should be visible from", IsRequired=true)]
public virtual DateTime From { get; set; }
///
///The timestamp to which the newsitem should be visible to
///
[ApiMember(Description="The timestamp to which the newsitem should be visible to", IsRequired=true)]
public virtual DateTime To { get; set; }
///
///The timestamp when news was created
///
[ApiMember(Description="The timestamp when news was created", IsRequired=true)]
public virtual DateTime Created { get; set; }
public virtual ResponseStatus ResponseStatus { get; set; }
}
[Route("/news/{Id}", "PUT")]
[ValidateRequest("IsAuthenticated")]
public partial class UpdateNewsItem
: IReturn, ICompany
{
///
///The company id, if empty will use the company id for the user you are logged in with.
///
[ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.")]
public virtual Guid? CompanyId { get; set; }
///
///Id of the newsitem to update
///
[ApiMember(Description="Id of the newsitem to update", IsRequired=true, ParameterType="path")]
public virtual int Id { get; set; }
///
///The news item header, keep this short and concise
///
[ApiMember(Description="The news item header, keep this short and concise", IsRequired=true)]
public virtual string Heading { get; set; }
///
///The news body text
///
[ApiMember(Description="The news body text", IsRequired=true)]
public virtual string Body { get; set; }
///
///Valid url to a image associated with the news
///
[ApiMember(Description="Valid url to a image associated with the news")]
public virtual Uri ImageUrl { get; set; }
///
///The timestamp from which the newsitem should be visible from
///
[ApiMember(Description="The timestamp from which the newsitem should be visible from", IsRequired=true)]
public virtual DateTime From { get; set; }
///
///The timestamp to which the newsitem should be visible to
///
[ApiMember(Description="The timestamp to which the newsitem should be visible to", IsRequired=true)]
public virtual DateTime To { get; set; }
}
}
namespace BokaMera.API.ServiceModel.Interfaces
{
public partial interface ICompany
{
Guid? CompanyId { get; set; }
}
}