FileController Class

Namespace:
Weavy.Web.Controllers
Assembly:
Weavy.Web.dll

Controller for serving files.

public class FileController : WeavyController
Inheritance:
System.Object → WeavyControllerFileController

Constructors

FileController()

Methods

AppIcon(int?, int?) Writes the app icon for mobile devices etc to the output.
ConversationAvatar(int, int?, int?, string, string) Writes the avatar for the specified conversation to the output.
Favicon() Writes favicon.ico to the output.
FavIcon(int?, int?, string, string) Writes the favicon to the output.
GetAttachment(int, string, int?, int?, string, string) Writes the binary data of the specified attachment to the output.
GetBlob(int, string, int?, int?, string, string) Writes the specified blob to the output.
GetContentThumb(int, string, int?, int?, string, string) Writes a thumbnail image for the specified content item to the output.
GetEmbedImage(int, string, int?, int?, string, string) Writes the specified embed image to the output.
GetExternalContent(Guid, string, string) Writes the binary data of the specified file to the output.
GetFile(int, string, int?, int?, string, string) Writes the binary data of the specified file to the output.
GetFileVersion(int, long, string, int?, int?, string, string) Writes the binary data of the specified file version to the output.
Manifest() Writes the Web App Manifest file, see https://www.w3.org/TR/appmanifest/.
NotificationAvatar(int, int?, int?, string, string) Writes the avatar for the specified notification to the output.
SpaceAvatar(int, int?, int?, string, string) Writes the avatar for the specified space to the output.
UserAvatar(int, int?, int?, string, string) Writes the specified user avatar to the output.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(object, Formatting?, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.