Beispiel #1
0
 public T QueryIdRecords <T, U>(QueryRecordType queryRecordType)
     where T : RecordResult <U>
     where U : QueryResultRecordType
 {
     try
     {
         return(this.ExecuteQuery <T, QueryResultRecordsType, U>(this._client.VCloudApiURL + this.BuildQuery(queryRecordType.Value()) + this.BuildQuery(FormatType.ID_RECORD_VIEW)));
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
Beispiel #2
0
 public RecordResult <U> QueryRecords <T, U>(
     QueryRecordType queryRecordType,
     QueryParams <T> queryParams)
     where T : QueryField
     where U : QueryResultRecordType
 {
     try
     {
         return(this.ExecuteQuery <RecordResult <U>, QueryResultRecordsType, U>(this._client.VCloudApiURL + this.BuildQuery(queryRecordType.Value()) + this.BuildQuery <T>(queryParams) + this.BuildQuery(FormatType.RECORD_VIEW)));
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }