ASP.NET VETtrak API web services
ContentsIndexHome
PreviousUpNext
VT_API.GetLMSOccurrencesInDateRange Method

Get all LMS Occurrences on offer during a date range. 

Returns an Authenticated Occurrence List containing all of the LMS Occurrences, which overlap the given date range. 

Each Occurrence is represented by a TOccu. The collection of Occurrences is represented by a List of TOccu

A token is passed for authentication. If the authentication fails, or other errors occur, no occurrences are returned. The result of the authentication is represented by a TAuthenticate object. 

A date range is passed as two parameters, xsdStart and xsdEnd, which define the end points of the date range. An occurrence will be returned in the Occurrence List, if any date for which the occurrence is offered (from its startdate to its enddate) co-incides with any date in the date range (including end points). 

Requires a valid registration key entry for the Short Courses feature.

C#
[WebMethod(Description = "Gets a list of occurrences that have been flagged for LMS within the specified date range")]
public TAuthOccuList GetLMSOccurrencesInDateRange(string sToken, DateTime xsdStart, DateTime xsdEnd);
Parameters 
Description 
string sToken 
String containing a token. 
DateTime xsdStart 
DateTime, start of date range in which to find Occurrences. 
DateTime xsdEnd 
DateTime, end of date range in which to find Occurrences. 

TAuthOccuList : an authenticated list of Occurrences.

Copyright (c) OzSoft Solutions 2016. All rights reserved.