GDPostalAddress
Object Hierarchy:
Description:
[ CCode ( type_id = "gdata_gd_postal_address_get_type ()" ) ]
[ Version ( since = "0.2.0" ) ]
public class GDPostalAddress : Parsable, Comparable
[ Version ( since = "0.2.0" ) ]
public class GDPostalAddress : Parsable, Comparable
All the fields in the GDPostalAddress structure are private and should never be accessed directly.
Namespace: GData
Package: libgdata
Content:
Properties:
- public string address { get; set; }
The postal address itself, formatted and unstructured.
- public string agent { get; set; }
The agent who actually receives the mail.
- public string city { get; set; }
Can be city, village, town, borough, etc.
- public string country { get; }
The name of the country.
- public string country_code { get; }
The ISO 3166-1 alpha-2 country code for the country in country.
- public string house_name { get; set; }
Used in places where houses or buildings have names (and not necessarily numbers).
- public bool is_primary { get; set; }
Indicates which postal address out of a group is primary.
- public string label { get; set; }
A simple string value used to name this postal address.
- public string mail_class { get; set; }
Classes of mail accepted at this address.
- public string neighborhood { get; set; }
This is used to disambiguate a street address when a city contains more than one street with the same name, or to specify a small place whose mail is routed through a larger postal town.
- public string po_box { get; set; }
Covers actual P.
- public string postcode { get; set; }
Postal code.
- public string region { get; set; }
A state, province, county (in Ireland), Land (in Germany), departement (in France), etc.
- public string relation_type { get; set; }
A programmatic value that identifies the type of postal address.
- public string street { get; set; }
Can be street, avenue, road, etc.
- public string subregion { get; set; }
Handles administrative districts such as U.
- public string usage { get; set; }
The context in which this address can be used.
Creation methods:
- public GDPostalAddress (string? relation_type, string? label, bool is_primary)
Creates a new GDPostalAddress.
Methods:
- public unowned string get_address ()
Gets the address property.
- public unowned string get_agent ()
Gets the agent property.
- public unowned string get_city ()
Gets the city property.
- public unowned string get_country ()
Gets the country property.
- public unowned string get_country_code ()
Gets the country_code property.
- public unowned string get_house_name ()
Gets the house_name property.
- public unowned string get_label ()
Gets the label property.
- public unowned string get_mail_class ()
Gets the mail_class property.
- public unowned string get_neighborhood ()
Gets the neighborhood property.
- public unowned string get_po_box ()
Gets the po_box property.
- public unowned string get_postcode ()
Gets the postcode property.
- public unowned string get_region ()
Gets the region property.
- public unowned string get_relation_type ()
Gets the relation_type property.
- public unowned string get_street ()
Gets the street property.
- public unowned string get_subregion ()
Gets the subregion property.
- public unowned string get_usage ()
Gets the usage property.
- public void set_address (string? address)
Sets the address property to
address
. - public void set_agent (string? agent)
Sets the agent property to
agent
. - public void set_city (string? city)
Sets the city property to
city
. - public void set_country (string? country, string? country_code)
Sets the country property to
country
, and country_code tocountry_code
. - public void set_house_name (string? house_name)
Sets the house_name property to
house_name
. - public void set_is_primary (bool is_primary)
Sets the is_primary property to
is_primary
. - public void set_label (string? label)
Sets the label property to
label
. - public void set_mail_class (string? mail_class)
Sets the mail_class property to
mail_class
. - public void set_neighborhood (string? neighborhood)
Sets the neighborhood property to
neighborhood
. - public void set_po_box (string? po_box)
Sets the po_box property to
po_box
. - public void set_postcode (string? postcode)
Sets the postcode property to
postcode
. - public void set_region (string? region)
Sets the region property to
region
. - public void set_relation_type (string? relation_type)
Sets the relation_type property to
relation_type
. - public void set_street (string? street)
Sets the street property to
street
. - public void set_subregion (string? subregion)
Sets the subregion property to
subregion
. - public void set_usage (string? usage)
Sets the usage property to
usage
.
Inherited Members:
All known members inherited from class GData.Parsable
All known members inherited from class GLib.Object
All known members inherited from interface GData.Comparable