C# 获得;“给我看”;Google(日历事件).Net API中的可用/忙碌值

C# 获得;“给我看”;Google(日历事件).Net API中的可用/忙碌值,c#,.net,vb.net,google-calendar-api,C#,.net,Vb.net,Google Calendar Api,有人知道如何使用Google.NETAPI获得“show me”值吗?我知道如何获取大多数事件条目的详细信息,但我无法获取这一条 它是下图中突出显示的一个 在更改事件的值后,我直接请求了calendar atom提要,以查看事件xml中更改了哪些元素,它看起来像是透明元素。查看.net google data api客户端库的源代码,可以通过EventEntry.EventTransparency属性访问它 我创建了一个扩展方法来处理这个问题: /// <summary> /// D

有人知道如何使用Google.NETAPI获得“show me”值吗?我知道如何获取大多数事件条目的详细信息,但我无法获取这一条

它是下图中突出显示的一个


在更改事件的值后,我直接请求了calendar atom提要,以查看事件xml中更改了哪些元素,它看起来像是透明元素。查看.net google data api客户端库的源代码,可以通过EventEntry.EventTransparency属性访问它

我创建了一个扩展方法来处理这个问题:

/// <summary>
/// Determines whether or not the EventEntry is set as Busy.
/// </summary>
/// <param name="entry">The Google EventEntry.</param>
public static bool IsBusy(this EventEntry entry)
{
    return entry.EventTransparency.Value.Equals("http://schemas.google.com/g/2005#event.opaque");
}
EventEntry eventEntry = ... 
bool isBusy = eventEntry.IsBusy();