liveexporesult.cs

来自「Accessing microsoft live web services fr」· CS 代码 · 共 107 行

CS
107
字号
using System;
using System.Collections.Generic;
using System.Text;

namespace LiveExpoService
{
    /// <summary>
    /// LiveExpoResult
    /// 
    /// This class is simply used to store properties for one particular Live Expo item in a particular category.
    /// </summary>
    /// <remarks>
    /// For each category there are also specific attributes available in Live Expo to determine the meaning and
    /// datatypes for each individual item to lookup. These are not used in this version of the LiveExpoService assembly.
    /// 
    /// Not all properties are stored in this version of LiveExpoService assembly, only a few to find out more details about
    /// a particular item. All these properties are typically available for each item, with the exception of pictures.
    /// More information can be retrieved in a Browser control by using the expoLink.
    /// </remarks>
    public class LiveExpoResult
    {
        private string title;
        private string description;
        private Uri expoLink;
        private Uri pictureLink;
        private string address;
        private string city;
        private string state;
        private string country;
        private string zipCode;
        private float latitude;
        private float longitude;

        public LiveExpoResult(string title)
        {
            this.title = title;
        }

        public string Title
        {
            get { return title; }
            set { title = value; }
        }

        public string Description
        {
            get { return description; }
            set { description = value; }
        }

        public Uri ExpoLink
        {
            get { return expoLink; }
            set { expoLink = value; }
        }

        public Uri PictureLink
        {
            get { return pictureLink; }
            set { pictureLink = value; }
        }

        public string Address
        {
            get { return address; }
            set { address = value; }
        }

        public string City
        {
            get { return city; }
            set { city = value; }
        }

        public string State
        {
            get { return state; }
            set { state = value; }
        }

        public string Country
        {
            get { return country; }
            set { country = value; }
        }

        public string ZipCode
        {
            get { return zipCode; }
            set { zipCode = value; }
        }

        public float Latitude
        {
            get { return latitude; }
            set { latitude = value; }
        }

        public float Longitude
        {
            get { return longitude; }
            set { longitude = value; }
        }

    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?