文章 ForumThreadsUpdateOptions 类

  • 命名空间: Limyee.Extensibility.Api.Version1
  • 程序集: Limyee.Api.dll

定义

class ForumThreadsUpdateOptions
{
	string Body { get; set;  }
	string ContentType { get; set;  }
	string EditNotes { get; set;  }
	IList<ExtendedAttribute> ExtendedAttributes { get; set;  }
	string FeaturedImage { get; set;  }
	Byte[] FileData { get; set;  }
	string FileName { get; set;  }
	Stream FileStream { get; set;  }
	string FileUploadContext { get; set;  }
	string FileUrl { get; set;  }
	bool? HasPoll { get; set;  }
	bool? IsAnonymous { get; set;  }
	bool? IsFeatured { get; set;  }
	bool? IsLocked { get; set;  }
	bool? IsQuestion { get; set;  }
	bool? IsSticky { get; set;  }
	string PollDescription { get; set;  }
	DateTime? PollExpirationDate { get; set;  }
	string PollTitle { get; set;  }
	DateTime? PostDate { get; set;  }
	bool? RemoveAttachment { get; set;  }
	DateTime? StickyDate { get; set;  }
	string Subject { get; set;  }
	bool? SubscribeToThread { get; set;  }
	string Tags { get; set;  }
}

属性

名称

类型

描述

默认值

选项

Body

string

Body

ContentType

string

Used when adding a post attachement

EditNotes

string

Edit notes

ExtendedAttributes

IList<ExtendedAttribute>

ExtendedAttributes

FeaturedImage

string

URL of image to use when IsFeatured is true

FileData

Byte[]

When adding a post attachment either FileData, FileUrl or FileUploadContext is required.

FileName

string

Used when adding a post attachement

FileStream

Stream

Used when adding a post attachement

FileUploadContext

string

When adding a post attachment either FileData, FileUrl or FileUploadContext is required.

FileUrl

string

When adding a post attachment either FileData, FileUrl or FileUploadContext is required.

HasPoll

bool?

Has poll

IsAnonymous

bool?

Is anonymous

IsFeatured

bool?

Is featured

IsLocked

bool?

Is locked

IsQuestion

bool?

Only used when the forum being posted to has both discussions and questions

IsSticky

bool?

Is sticky

PollDescription

string

Poll description

PollExpirationDate

DateTime?

Poll expirationDate

PollTitle

string

Poll title

PostDate

DateTime?

Current Date

RemoveAttachment

bool?

When true, removes the post's attachment

StickyDate

DateTime?

If a thread is sticky, used to specify how long it should be sticky. If no sticky date provided default is current date + 7 days

Subject

string

Subject

SubscribeToThread

bool?

Subscribe to thread

Tags

string

A comma separated list of tags