本文整理汇总了C#中SkypeKit.SktConversation.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# SktConversation.ToString方法的具体用法?C# SktConversation.ToString怎么用?C# SktConversation.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SkypeKit.SktConversation
的用法示例。
在下文中一共展示了SktConversation.ToString方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DispatchPropertyUpdate
/** When the socket reader receives a property update from runtime, it decodes object ID
* property ID and the new value of the property. It then calls this method of
* the target object, to update the new value in property cache. After updating the cache,
* this method then fires appropriate event in skype.events to notify the UI of what has happened.
* DispatchPropertyUpdate is executed in the socket reader thread.
*/
internal override void DispatchPropertyUpdate(uint propId, object value, bool hasValue)
{
switch (propId)
{
case 972: /* Conversation.P_IDENTITY */
cache[0] = hasValue; // if no value - invalidate cache
if (hasValue)
{
cache_identity = (String)value;
if (skypeRef.logging) skypeRef.Log("Conversation.P_IDENTITY = " + cache_identity.ToString());
}
else if (skypeRef.logging) skypeRef.Log("Conversation.P_IDENTITY - update without value");
skypeRef.events.FireOnConversationIdentity(this, cache_identity);
break;
case 902: /* Conversation.P_TYPE */
cache[1] = hasValue; // if no value - invalidate cache
if (hasValue)
{
cache_type = (SktConversation.TYPE)value;
if (skypeRef.logging) skypeRef.Log("Conversation.P_TYPE = " + cache_type.ToString());
}
else if (skypeRef.logging) skypeRef.Log("Conversation.P_TYPE - update without value");
skypeRef.events.FireOnConversationType(this, cache_type);
break;
case 918: /* Conversation.P_LIVE_HOST */
cache[2] = hasValue; // if no value - invalidate cache
if (hasValue)
{
cache_live_host = (String)value;
if (skypeRef.logging) skypeRef.Log("Conversation.P_LIVE_HOST = " + cache_live_host.ToString());
}
else if (skypeRef.logging) skypeRef.Log("Conversation.P_LIVE_HOST - update without value");
skypeRef.events.FireOnConversationLiveHost(this, cache_live_host);
break;
case 974: /* Conversation.P_LIVE_START_TIMESTAMP */
cache[3] = hasValue; // if no value - invalidate cache
if (hasValue)
{
cache_live_start_timestamp = (uint)value;
if (skypeRef.logging) skypeRef.Log("Conversation.P_LIVE_START_TIMESTAMP = " + cache_live_start_timestamp.ToString());
}
else if (skypeRef.logging) skypeRef.Log("Conversation.P_LIVE_START_TIMESTAMP - update without value");
skypeRef.events.FireOnConversationLiveStartTimestamp(this, skypeRef.UnixTimestampToDateTime(cache_live_start_timestamp));
break;
case 996: /* Conversation.P_LIVE_IS_MUTED */
cache[4] = hasValue; // if no value - invalidate cache
if (hasValue)
{
cache_live_is_muted = (Boolean)value;
if (skypeRef.logging) skypeRef.Log("Conversation.P_LIVE_IS_MUTED = " + cache_live_is_muted.ToString());
}
else if (skypeRef.logging) skypeRef.Log("Conversation.P_LIVE_IS_MUTED - update without value");
skypeRef.events.FireOnConversationLiveIsMuted(this, cache_live_is_muted);
break;
case 920: /* Conversation.P_ALERT_STRING */
cache[5] = hasValue; // if no value - invalidate cache
if (hasValue)
{
cache_alert_string = (String)value;
if (skypeRef.logging) skypeRef.Log("Conversation.P_ALERT_STRING = " + cache_alert_string.ToString());
}
else if (skypeRef.logging) skypeRef.Log("Conversation.P_ALERT_STRING - update without value");
skypeRef.events.FireOnConversationAlertString(this, cache_alert_string);
break;
case 921: /* Conversation.P_IS_BOOKMARKED */
cache[6] = hasValue; // if no value - invalidate cache
if (hasValue)
{
cache_is_bookmarked = (Boolean)value;
if (skypeRef.logging) skypeRef.Log("Conversation.P_IS_BOOKMARKED = " + cache_is_bookmarked.ToString());
}
else if (skypeRef.logging) skypeRef.Log("Conversation.P_IS_BOOKMARKED - update without value");
skypeRef.events.FireOnConversationIsBookmarked(this, cache_is_bookmarked);
break;
case 925: /* Conversation.P_GIVEN_DISPLAYNAME */
cache[7] = hasValue; // if no value - invalidate cache
if (hasValue)
{
cache_given_displayname = (String)value;
if (skypeRef.logging) skypeRef.Log("Conversation.P_GIVEN_DISPLAYNAME = " + cache_given_displayname.ToString());
}
else if (skypeRef.logging) skypeRef.Log("Conversation.P_GIVEN_DISPLAYNAME - update without value");
skypeRef.events.FireOnConversationGivenDisplayname(this, cache_given_displayname);
break;
case 924: /* Conversation.P_DISPLAYNAME */
cache[8] = hasValue; // if no value - invalidate cache
//.........这里部分代码省略.........