使用 GetUserAvailabilityRequest 查询 FreeBusy 状态时,AttendeeType 应该使用什么?
我正在编写一个应用程序,用于查询用户的 Outlook 日历,以查看是否可以“立即”联系他们(即,他们当前没有标记为“离开”或“不在办公室”的约会)。
我正在使用 GetUserAvailabilityRequest xml 消息,它运行良好,但我对于应该为 attendeeType 使用什么感到有点困惑。
attendeeType 是一个字段,允许我指定我正在寻找的会议参加者类型 - 无论是会议组织者、必需的参加者、可选的参加者、房间资源等。
但对于此应用程序,我不关心关于参加者类型;我只关心此人当前是否有将其标记为不可用的约会。如果鲍勃不在办公室参加会议,我不在乎他是否组织了会议或者他是否受到卡罗尔的邀请;我只关心鲍勃不在办公室。
我是否可以使用一个值来捕获所有与会者类型?我见过的大多数示例都使用值“必需”,但它们没有解释原因。
I'm writing an application that queries a user's Outlook calendar to see if they are available to be contacted "right now" (i.e., they do not have a current appointment that is marked as Away or Out Of Office).
I'm using the GetUserAvailabilityRequest xml message and it's working well, but I'm a bit confused as to what I should use for the AttendeeType.
AttendeeType is a field that allows me to specify the kind of meeting attendee I'm looking for -- whether it's the meeting organizer, a required attendee, an optional attendee, a room resource, etc.
But for this application I don't care about the attendee type; I only care if the person has a current appointment that marks them as unavailable. If Bob is out of his office attending a meeting, I don't care if he put the meeting together or if he was invited by Carol; I only care that Bob is out of his office.
Is there a value I can use for AttendeeType that will catch all attendee types? Most of the examples I've seen use the value "Required", but they don't explain why.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现OptionalAttendee 和RequiredAttendee 都是有效的,因此使用RequiredAttendee 的选择完全是风格/任意的。
我认为这是一个假设性的查询,例如“如果这个人此时作为可选参加者(或作为必需参加者)参加活动,他们会发生冲突吗?”因此,它们是必需的还是可选的并不重要。
顺便说一句,资源是像投影仪和房间之类的东西,所以我不确定如果你尝试将一个人作为资源进行检查会发生什么,但我想这是行不通的。
I've found that both OptionalAttendee and RequiredAttendee are valid, so the choice to use RequiredAttendee is entirely stylistic/arbitrary.
I believe that this is sort of a hypothetical query, like "If this person were to come to an event at this time as an optional attendee (or as a required attendee), would they have conflicts?" So it doesn't matter if they are required or optional.
As an aside, resources are things like projectors and rooms, so I'm not sure what would happen if you tried to check a person as a resource, but I imagine it wouldn't work out.