コード例 #1
0
        /// <summary>
        /// Gets logs for account.
        /// </summary>
        /// <param name="startTime"></param>
        /// <param name="endTime"></param>
        /// <param name="itemId"></param>
        /// <param name="limit"></param>
        /// <param name="logType"></param>
        /// <param name="operatorId"></param>
        /// <param name="startKey"></param>
        /// <param name="client">REST client.</param>
        /// <returns></returns>
        public static AccountLogs GetLogs(DateTime startTime,
                                          DateTime endTime,
                                          int?itemId           = null,
                                          int?limit            = null,
                                          string logType       = null,
                                          int?operatorId       = null,
                                          string startKey      = null,
                                          IVcRestClient client = null)
        {
            AccountLogsQueryParams queryParams = new AccountLogsQueryParams(startTime, endTime)
            {
                ItemId     = itemId,
                Limit      = limit,
                LogType    = logType,
                OperatorId = operatorId,
                StartKey   = startKey
            };

            return(GetLogs(queryParams, client));
        }
コード例 #2
0
 /// <summary>
 /// Gets logs for account.
 /// </summary>
 /// <param name="queryParams">AccountsLogsQueryParams.</param>
 /// <param name="client">REST client.</param>
 /// <returns></returns>
 private static AccountLogs GetLogs(AccountLogsQueryParams queryParams, IVcRestClient client = null)
 {
     return(GetSingle <AccountLogs>(BuildGetLogsUrl(VcClient.AccountId), queryParams, includeRoot: true, client: client));
 }