using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Nuclex.Networking.Gallery3.Responses {
/// Entity returned as JSON by the gallery REST API
public struct JsonEntity {
/// Unique ID of this entity
public int Id;
/// Date a photo was captured in seconds sine 1970
public int? Captured;
/// Date this entity was created at in seconds since 1970
public int Created;
/// Description the user has entered for this item
public string Description;
/// Height of the item, if it is an image or video
public int? Height;
#if SERIALIZE_UNUSED_FIELDS
/// Directory level this entity is in, starting at 1
public int Level;
#endif
#if SERIALIZE_UNUSED_FIELDS
/// MIME type of the entity
public string Mime_Type;
#endif
/// Name of the entity in the host's file system
public string Name;
/// ID of the user who owns this entity
public int Owner_Id;
#if SERIALIZE_UNUSED_FIELDS
/// Random key assigned to the entity
///
/// No idea about its purpose. I've seen gallery append random numbers to
/// files the were added and turned out to be duplicates - but I've no
/// idea what sense it makes to store this random key then.
///
public string Rand_Key;
#endif
/// String used to refer to this entity in an URL
public string Slug;
/// Height of the thumbnail for this entity, if any
public int? Thumb_Height;
/// Width of the thumbnail for this entity, if any
public int? Thumb_Width;
/// The item's human-readable title
public string Title;
/// What type of entity this is
///
/// At the time of this writing, this can only be 'album' or 'item'
///
public string Type;
/// Date and time this entity was last updated in seconds since 1970
public int Updated;
/// Times this element has been viewed so far
public int View_Count;
/// Weight of this item for user-controlled ordering
public int Weight;
/// Width of the item
public int? Width;
/// URL of the entity's parent
public string Parent;
///
/// URL through which the file represented by the entity can be downloaded
///
public string File_Url;
///
/// URL through which the resized version of the entity can be downloaded
///
public string Resize_Url;
/// URL through which the entity's thumbnail can be downloaded
public string Thumb_Url;
}
} // namespace Nuclex.Networking.Gallery3.Responses