Toggle menu
876
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Attachment class

From Catglobe Wiki
Revision as of 03:05, 18 September 2014 by Nguyenhientrung (talk | contribs) (Created page with "{{CGscriptClass_Template |Name=Attachment |Description= Represents an attachment object |Constructors= {{CGscriptConstructors_Template|Parameters= {{CGscriptParameters_Templat...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Attachment



Represents an attachment object

Constructors

  • (number resourceId "ResourceId of existing attachment") - Fetch existing attachment
  • (string name "Resource name. If set to empty, the name is taken from the downloaded or copied file"number parentResourceId "Parent resource") - Create new attachment

Methods

  • array GetChildAttachments(number parentResourceId "Parent resource") - Get all of the attachments associated with the resource
  • Empty SaveFromDownload(WebResponse response "Response from HttpRequest") - Download from an HttpRequest's response
  • Empty SaveFromFileCopy(string name "Name of the file"bool isTemp "Is the file temporary") - Copy from an already stored file using Catglobe.File
  • string ToString() - The string representation of the object.

Properties

  • number FileSize { get; } - The size of the file on disc
  • string Name { get; set; } - Resource name. If set to empty, the name is taken from the downloaded or copied file
  • string ObjectTypeName { get; } - The name of the type of object
  • number ResourceId { get; } - The Id of the Attachment
  • TypeInformation TypeInformation { get; } - Get information about this class.