コード例 #1
0
  /// <summary>
 /// Get an activity by Id.
 /// </summary>
 /// <param name="ActivityId"></param>
 /// <param name="access"></param>
 /// <returns></returns>
 public JArray GetActivityById(string ActivityId, string access)
 {
     Activities objActivity = new Activities();
     try
     {
         objArr = objActivity.Get_Activity_By_Id(ActivityId, access);
     }
     catch (Exception Err)
     {
         Console.Write(Err.StackTrace);
     }
     return objArr;
 }
コード例 #2
0
  /// <summary>
 /// Search public activities.
 /// </summary>
 /// <param name="query">Full-text search query string. </param>
 /// <param name="access"></param>
 /// <returns></returns>
 public JArray GetActivitiesSearch(string query, string access)
 {
     Activities objActivity = new Activities();
     try
     {
         objArr = objActivity.Get_Activities_Search(query, access);
     }
     catch (Exception Err)
     {
         Console.Write(Err.StackTrace);
     }
     return objArr;
 }
コード例 #3
0
  /// <summary>
 /// List all of the activities in the specified collection for a particular user.
 /// </summary>
 /// <param name="UserId"></param>
 /// <param name="access"></param>
 /// <returns></returns>
 public JArray GetActivitiesList(string UserId, string access)
 {
     Activities objActivity = new Activities();
     try
     {
         objArr = objActivity.Get_Activities_List(UserId, access);
     }
     catch (Exception Err)
     {
         Console.Write(Err.StackTrace);
     }
     return objArr;
 }