Logo Search packages:      
Sourcecode: gdata-sharp version File versions  Download package

Google::GData::YouTube::ProfileEntry Class Reference

Inheritance diagram for Google::GData::YouTube::ProfileEntry:

Google::GData::YouTube::YouTubeBaseEntry Google::GData::Client::AbstractEntry Google::GData::Client::AtomEntry Google::GData::Client::ISupportsEtag Google::GData::Client::AtomBase Google::GData::Client::IExtensionContainer Google::GData::Client::IVersionAware

List of all members.


Detailed Description

A user profile contains information that the user lists on his YouTube profile page.

Definition at line 40 of file profileentry.cs.


Public Member Functions

void AddExtension (IExtensionElementFactory factory)
 adding an extension factory for extension elements
override AtomBase CreateAtomSubElement (XmlReader reader, AtomFeedParser parser)
 this is the subclassing method for AtomBase derived classes to overload what childelements should be created needed to create CustomLink type objects, like WebContentLink etc
IExtensionElementFactory CreateExtension (string localName, string ns)
 Creates an extension for a given name and namespace by walking the extension factories list and calling CreateInstance for the right one.
void Delete ()
 deletes the item from the server
int DeleteExtensions (string localName, string ns)
 Delete's all Extensions from the Extension list that match a localName and a Namespace.
IExtensionElementFactory FindExtension (string localName, string ns)
 Finds a specific ExtensionElement based on it's local name and it's namespace. If namespace is NULL, the first one where the localname matches is found. If there are extensionelements that do not implment ExtensionElementFactory, they will not be taken into account Primary use of this is to find XML nodes.
IExtensionElementFactory FindExtensionFactory (string localName, string ns)
 Finds the extension factory for a given name/namespace.
ExtensionList FindExtensions (string localName, string ns, ExtensionList arr)
 Finds all ExtensionElement based on it's local name and it's namespace. If namespace is NULL, allwhere the localname matches is found. If there are extensionelements that do not implment ExtensionElementFactory, they will not be taken into account Primary use of this is to find XML nodes.
ExtensionList FindExtensions (string localName, string ns)
 Finds all ExtensionElement based on it's local name and it's namespace. If namespace is NULL, allwhere the localname matches is found. If there are extensionelements that do not implment ExtensionElementFactory, they will not be taken into account Primary use of this is to find XML nodes.
List< TFindExtensions< T > (string localName, string ns)
 Finds all ExtensionElement based on it's local name and it's namespace. If namespace is NULL, allwhere the localname matches is found. If there are extensionelements that do not implment ExtensionElementFactory, they will not be taken into account Primary use of this is to find XML nodes.
string GetAbsoluteUri (string part)
 Read only accessor for AbsoluteUri. This is pushed down whenever a base changes.
string GetExtensionValue (string extension, string ns)
 we have one string based getter usage is: entry.getExtensionValue("namespace", "tagname") to get the elements value
SimpleElement getYouTubeExtension (string extension)
 instead of having 20 extension elements we have one string based getter usage is: entry.getPhotoExtension("albumid") to get the element
string getYouTubeExtensionValue (string extension)
 instead of having 20 extension elements we have one string based getter usage is: entry.getPhotoExtensionValue("albumid") to get the elements value
bool IsDirty ()
 returns if the element or one subelement is dirty
bool IsPersistable ()
 checks if the element or one subelement are persistable
virtual void Parse (ExtensionElementEventArgs e, AtomFeedParser parser)
 Parses the inner state of the element.
 ProfileEntry ()
 Constructs a new ProfileEntry instance.
void ReplaceExtension (string localName, string ns, IExtensionElementFactory obj)
 all extension elements that match a namespace/localname given will be removed and the new one will be inserted
int ReplaceExtensions (ExtensionList newList)
 all extension elements that match a namespace/localname given will be removed and replaced with the new ones. the input array can contain several different namespace/localname combinations if the passed list is NULL or empty, this will just result in additions
void SaveToXml (XmlWriter writer)
 saves the object as XML
void SaveToXml (Stream stream)
 Saves the object as XML.
SimpleElement SetExtensionValue (string extension, string ns, string newValue)
 we have one string based setter usage is: entry.setExtensionValue("tagname", "ns", "value") to set the element this will create the extension if it's not there note, you can ofcourse, just get an existing one and work with that object:
SimpleElement setYouTubeExtension (string extension, string newValue)
 instead of having 20 extension elements we have one string based setter usage is: entry.setYouTubeExtension("albumid") to set the element this will create the extension if it's not there note, you can ofcourse, just get an existing one and work with that object: SimpleElement e = entry.getPhotoExtension("albumid"); e.Value = "new value";
virtual bool ShouldBePersisted ()
 Method to check whether object should be saved. This doesn't check whether the object is dirty; it only checks whether the XML content is worth saving.
void ToggleCategory (AtomCategory cat, bool value)
 helper to toggle categories
AtomEntry Update ()
 commits the item to the server
override bool WalkTree (IBaseWalkerAction action)
 calls the action on this object and all children

Static Public Member Functions

static AtomEntry ImportFromFeed (AtomEntry entryToImport)
 helper method to create a new, decoupled entry based on a feedEntry

Static Public Attributes

static AtomCategory PROFILE_CATEGORY
 Category used to label entries that friends.

Protected Member Functions

override void AddOtherNamespaces (XmlWriter writer)
 base implementation, as with the abstract feed, we are adding the gnamespace
void CopyEntry (AtomEntry updatedEntry)
 takes the updated entry returned and sets the properties to this object
virtual void OnVersionInfoChanged ()
 this potential overloaded method get's called when the version information of an object is changed. It handles setting the versioninformation on all children and the factories.
override void SaveInnerXml (XmlWriter writer)
 saves the inner state of the element
virtual void SaveXmlAttributes (XmlWriter writer)
 protected virtual int SaveXmlAttributes(XmlWriter writer)
override bool SkipNode (XmlNode node)
 Checks if this is a namespace declaration that we already added.

Static Protected Member Functions

static void WriteElementStart (XmlWriter writer, string elementName)
 protected WriteElementStart(XmlWriter writer)
static void WriteEncodedAttributeString (XmlWriter writer, string attributeName, string content)
 helper method to encapsulate encoding, uses HTML encoding now
static void WriteEncodedAttributeString (XmlWriter writer, string attributeName, AtomUri content)
 helper method to encapsulate encoding, uses HTML encoding now
static void WriteEncodedElementString (XmlWriter writer, string elementName, AtomUri content)
 helper method to encapsulate encoding, uses HTML encoding now
static void WriteEncodedElementString (XmlWriter writer, string elementName, string content)
 helper method to encapsulate encoding, uses HTML encoding now
static void WriteEncodedString (XmlWriter writer, AtomUri content)
 helper method to encapsulate a string encoding, uses HTML encoding now
static void WriteEncodedString (XmlWriter writer, string content)
 helper method to encapsulate a string encoding, uses HTML encoding now
static void WriteLocalDateTimeElement (XmlWriter writer, string elementName, DateTime dateTime)
 Writes out a LOCAL datetime in ISO 8601 format.

Properties

int Age [get, set]
 The yt:ag> tag specifies the user's age, which is calculated based on the birthdate provided.
AtomUri AlternateUri [get, set]
 accessor to find the alternate link, in HTML only The method scans the link collection for a link that is of type rel=alternate and has a media type of HTML, otherwise it return NULL. The same is true for setting this. If you need to use a rel/alternate with a different media type, you need to use the links collection directly
AppControl AppControl [get, set]
 returns the app:control element
AtomPersonCollection Authors [get]
 accessor method public Contributors AtomPersonCollection
AtomUri Base [get, set]
 calculates or set's the base uri of an element
GDataBatchEntryData BatchData [get, set]
 accessor to the batchdata for the entry
string Books [get, set]
 The yt:books tag identifies the user's favorite books as entered in the user's YouTube public profile.
AtomCategoryCollection Categories [get]
 holds an array of AtomCategory objects
string Company [get, set]
 The yt:company tag identifies the company that the user works for as entered by the user in the user's public YouTube profile.
AtomContent Content [get, set]
 accessor method public string Content
AtomPersonCollection Contributors [get]
 accessor method public Contributors AtomPersonCollection
string Description [get, set]
 getter/setter for Description subelement
bool Dirty [get, set]
 The dirty property - indicates if exactly this element is dirty.
AppEdited Edited [get, set]
 returns the app:edited element of the entry, if any. This is a protocol version 2 feature
AtomUri EditUri [get, set]
 accessor method public Uri EditUri
string Etag [get, set]
 returns this entries etag, if any This is a protocol version 2 feature
ExtensionList ExtensionElements [get]
 read only accessor for the ExtensionsElements Collections
ExtensionList ExtensionFactories [get]
 read only accessor for the Extension Factories
AtomFeed Feed [get]
 Read only accessor for feed.
ExtensionCollection< FeedLinkFeedLinks [get]
 property accessor for the Thumbnails
string FeedUri [get, set]
 accessor method public string Feed
string Firstname [get, set]
 the users firstname per public profile
string Gender [get, set]
 the users gender per public profile
string Hobbies [get, set]
 the users hobbies per public profile
string Hometown [get, set]
 The yt:hometown tag identifies the user's hometown.
AtomId Id [get, set]
 accessor method public AtomId Id
AtomUri ImpliedBase [get, set]
 property that holds the implied base URI
bool IsDraft [get, set]
 specifies if app:control/app:draft is yes or no. this is determined by walking the extension elements collection
string Language [get, set]
 returns and sets the xml:lang value
string Lastname [get, set]
 the users lastname per public profile
AtomLinkCollection Links [get]
 accessor method public Links AtomLinkCollection
string Location [get, set]
 the users location per public profile
MediaSource MediaSource [get, set]
 access the associated media element. Note, that setting this WILL cause subsequent updates to be done using MIME multipart posts
AtomUri MediaUri [get, set]
 accessor to find the edit-media link
string Movies [get, set]
 the users favorite movies per public profile
string Music [get, set]
 the users favorite music per public profile
string Occupation [get, set]
 the users occupation per public profile
int ProtocolMajor [get, set]
 returns the major protocol version number this element is working against.
int ProtocolMinor [get, set]
 returns the minor protocol version number this element is working against.
DateTime Published [get, set]
 accessor method public DateTime PublicationDate
bool ReadOnly [get]
 returns whether or not the entry is read-only
string Relationship [get, set]
 The yt:relationship tag identifies the user's relationship status.
AtomTextConstruct Rights [get, set]
 accessor method public string rights
string School [get, set]
 the users school per public profile
AtomUri SelfUri [get, set]
 accessor for the self URI
IService Service [get, set]
 accessor method for the GData Service to use
AtomSource Source [get, set]
 if the entry was copied, represents the source
Statistics Statistics [get, set]
 returns the yt:statistics element
AtomTextConstruct Summary [get, set]
 accessor method public string Summary
AtomTextConstruct Title [get, set]
 accessor method public AtomTextConstruct Title
DateTime Updated [get, set]
 accessor method public DateTime UpdateDate
string UserName [get, set]
 getter/setter for UserName subelement
override string XmlName [get]
 Returns the constant representing this XML element.

Private Attributes

ExtensionCollection< FeedLinklinks
 /feed/entry/link collection

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index