1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
//------------------------------------------------------------------------------
// <copyright file="PeerPresenceInfo.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
namespace System.Net.PeerToPeer.Collaboration
{
using System;
/// <summary>
/// Encapsulates the presence information for a collab peer
/// </summary>
public class PeerPresenceInfo
{
private PeerPresenceStatus m_peerPresenceStatus;
private string m_descriptiveText;
public PeerPresenceInfo() {}
public PeerPresenceInfo(PeerPresenceStatus presenceStatus, string description) {
m_peerPresenceStatus = presenceStatus;
m_descriptiveText = description;
}
public PeerPresenceStatus PresenceStatus
{
get{
return m_peerPresenceStatus;
}
set
{
m_peerPresenceStatus = value;
}
}
public string DescriptiveText
{
get{
return m_descriptiveText;
}
set
{
m_descriptiveText = value;
}
}
}
}
|