Citrix .NET SDK GoToWebinar CreateWebinar C#

时间:2016-06-30 07:28:33

标签: c# asp.net citrix

我正在测试Citrix GoToWebinar SKD for .NET,由于某些原因,一件对我不起作用的事情是新的网络研讨会创建。如果有人知道我做错了什么,请回复。任何帮助将不胜感激。

public CreatedWebinar CreateWebinarSingleSession(DateTime startTime, DateTime endTime, string subject, string description, bool isPasswordProtected)
    {
    var retVal = new CreatedWebinar();
    var webinarsApi = new WebinarsApi();

    var times = new List<DateTimeRange>();
    var timeFrame = new DateTimeRange()
    {
        startTime = startTime, // {30.6.2016. 14:16:03}
        endTime = endTime // {30.6.2016. 16:16:03}
    };

    times.Add(timeFrame);

    var newWebinarDetails = new WebinarReqCreate()
    {
        subject = subject, //"Webinar C#"
        description = description, //"Learn how to code in C#"
        isPasswordProtected = isPasswordProtected, //false
        //timeZone = "Europe/Warsaw",
        //type = "",
        times = times //{class DateTimeRange {startTime: 2016-06-30T12:16:03Z endTime: 2016-06-30T14:16:03Z}}
    };

    var newWebinar = webinarsApi.createWebinar(LoginResponse.access_token, Convert.ToInt64(LoginResponse.organizer_key), newWebinarDetails);
    if (newWebinar != null)
        retVal = newWebinar;

    return retVal;
}

0 个答案:

没有答案