/// <summary> /// Get Activities Destination Marked as Departed /// </summary> public void SearchDestinationMarkedAsDeparted() { // Create the manager with the api key Route4MeManager route4Me = new Route4MeManager(c_ApiKey); ActivityParameters activityParameters = new ActivityParameters { ActivityType = "mark-destination-departed", RouteId = "03CEF546324F727239ABA69EFF3766E1" }; // Run the query string errorString = ""; Activity[] activities = route4Me.GetActivityFeed(activityParameters, out errorString); Console.WriteLine(""); if (activities != null) { Console.WriteLine("SearchDestinationMarkedAsDeparted executed successfully, {0} activities returned", activities.Length); Console.WriteLine(""); foreach (Activity Activity in activities) { Console.WriteLine("Activity ID: {0}", Activity.ActivityId); } Console.WriteLine(""); } else { Console.WriteLine("SearchDestinationMarkedAsDeparted error: {0}", errorString); } }
/// <summary> /// Get Activities Destination Updated /// </summary> public void SearchDestinationUpdated() { // Create the manager with the api key Route4MeManager route4Me = new Route4MeManager(c_ApiKey); ActivityParameters activityParameters = new ActivityParameters { ActivityType = "update-destinations" }; // Run the query string errorString = ""; Activity[] activities = route4Me.GetActivityFeed(activityParameters, out errorString); Console.WriteLine(""); if (activities != null) { Console.WriteLine("SearchDestinationUpdated executed successfully, {0} activities returned", activities.Length); Console.WriteLine(""); foreach (Activity Activity in activities) { Console.WriteLine("Activity ID: {0}", Activity.ActivityId); } Console.WriteLine(""); } else { Console.WriteLine("SearchDestinationUpdated error: {0}", errorString); } }
/// <summary> /// Get Activities Search Area Added /// </summary> public void SearchAreaAdded() { // Create the manager with the api key Route4MeManager route4Me = new Route4MeManager(c_ApiKey); ActivityParameters activityParameters = new ActivityParameters { ActivityType = "area-added" }; // Run the query string errorString = ""; Activity[] activities = route4Me.GetActivityFeed(activityParameters, out errorString); Console.WriteLine(""); if (activities != null) { Console.WriteLine("SearchAreaAdded executed successfully, {0} activities returned", activities.Length); Console.WriteLine(""); foreach (Activity Activity in activities) { Console.WriteLine("Activity ID: {0}", Activity.ActivityId); } Console.WriteLine(""); } else { Console.WriteLine("SearchAreaAdded error: {0}", errorString); } }
/// <summary> /// Get Activities Route Owner Changed /// </summary> public void SearchRouteOwnerChanged() { // Create the manager with the api key Route4MeManager route4Me = new Route4MeManager(c_ApiKey); ActivityParameters activityParameters = new ActivityParameters { ActivityType = "route-owner-changed", RouteId = "5C15E83A4BE005BCD1537955D28D51D7" }; // Run the query string errorString = ""; Activity[] activities = route4Me.GetActivityFeed(activityParameters, out errorString); Console.WriteLine(""); if (activities != null) { Console.WriteLine("SearchRouteOwnerChanged executed successfully, {0} activities returned", activities.Length); Console.WriteLine(""); foreach (Activity Activity in activities) { Console.WriteLine("Activity ID: {0}", Activity.ActivityId); } Console.WriteLine(""); } else { Console.WriteLine("SearchRouteOwnerChanged error: {0}", errorString); } }
/// <summary> /// Get Activities Note Inserted /// </summary> public void SearchNoteInserted() { // Create the manager with the api key Route4MeManager route4Me = new Route4MeManager(c_ApiKey); ActivityParameters activityParameters = new ActivityParameters { ActivityType = "note-insert", RouteId = "C3E7FD2F8775526674AE5FD83E25B88A" }; // Run the query string errorString = ""; Activity[] activities = route4Me.GetActivityFeed(activityParameters, out errorString); Console.WriteLine(""); if (activities != null) { Console.WriteLine("SearchNoteInserted executed successfully, {0} activities returned", activities.Length); Console.WriteLine(""); foreach (Activity Activity in activities) { Console.WriteLine("Activity ID: {0}", Activity.ActivityId); } Console.WriteLine(""); } else { Console.WriteLine("SearchNoteInserted error: {0}", errorString); } }
public void GetActivities(string routeId) { // Create the manager with the api key Route4MeManager route4Me = new Route4MeManager(c_ApiKey); ActivityParameters activityParameters = new ActivityParameters() { RouteId = routeId, Limit = 10, Offset = 0 }; // Run the query string errorString; Activity[] activities = route4Me.GetActivityFeed(activityParameters, out errorString); Console.WriteLine(""); if (activities != null) { Console.WriteLine("GetActivities executed successfully, {0} activities returned", activities.Length); Console.WriteLine(""); activities.ForEach(activity => { Console.WriteLine("Activity ID: {0}", activity.ActivityId); }); Console.WriteLine(""); } else { Console.WriteLine("GetActivities error: {0}", errorString); } }
/// <summary> /// Get Activities Route Owner Changed /// </summary> public void SearchRouteOwnerChanged() { // Create the manager with the api key Route4MeManager route4Me = new Route4MeManager(c_ApiKey); ActivityParameters activityParameters = new ActivityParameters { ActivityType = "route-owner-changed", RouteId = "5C15E83A4BE005BCD1537955D28D51D7" }; // Run the query string errorString = ""; Activity[] activities = route4Me.GetActivityFeed(activityParameters, out errorString); Console.WriteLine(""); if (activities != null) { Console.WriteLine("SearchRouteOwnerChanged executed successfully, {0} activities returned", activities.Length); Console.WriteLine(""); foreach (Activity Activity in activities) { Console.WriteLine("Activity ID: {0}", Activity.ActivityId); } Console.WriteLine(""); } else { Console.WriteLine("SearchRouteOwnerChanged error: {0}", errorString); } }
/// <summary> /// Get Activities Destination Inserted /// </summary> public void SearchDestinationInserted() { // Create the manager with the api key Route4MeManager route4Me = new Route4MeManager(c_ApiKey); ActivityParameters activityParameters = new ActivityParameters { ActivityType = "insert-destination", RouteId = "87B8873BAEA4E09942C68E2C92A9C4B7" }; // Run the query string errorString = ""; Activity[] activities = route4Me.GetActivityFeed(activityParameters, out errorString); Console.WriteLine(""); if (activities != null) { Console.WriteLine("SearchDestinationInserted executed successfully, {0} activities returned", activities.Length); Console.WriteLine(""); foreach (Activity Activity in activities) { Console.WriteLine("Activity ID: {0}", Activity.ActivityId); } Console.WriteLine(""); } else { Console.WriteLine("SearchDestinationInserted error: {0}", errorString); } }
public void GetActivities(string routeId) { // Create the manager with the api key Route4MeManager route4Me = new Route4MeManager(c_ApiKey); ActivityParameters activityParameters = new ActivityParameters() { RouteId = routeId, Limit = 10, Offset = 0 }; // Run the query string errorString; Activity[] activities = route4Me.GetActivityFeed(activityParameters, out errorString); Console.WriteLine(""); if (activities != null) { Console.WriteLine("GetActivities executed successfully, {0} activities returned", activities.Length); Console.WriteLine(""); activities.ForEach(activity => { Console.WriteLine("Activity ID: {0}", activity.ActivityId); }); Console.WriteLine(""); } else { Console.WriteLine("GetActivities error: {0}", errorString); } }
/// <summary> /// Get Team Activities on a Route /// </summary> public void GetRouteTeamActivities() { // Create the manager with the api key Route4MeManager route4Me = new Route4MeManager(c_ApiKey); string routeId = "06B655F27E0D6A74BD37F6F9758E4D2E"; ActivityParameters activityParameters = new ActivityParameters { RouteId = routeId, Team = "true" }; // Run the query string errorString = ""; Activity[] activities = route4Me.GetActivityFeed(activityParameters, out errorString); Console.WriteLine(""); if (activities != null) { Console.WriteLine("GetRouteTeamActivities executed successfully, {0} activities returned", activities.Length); Console.WriteLine(""); foreach (Activity Activity in activities) { Console.WriteLine("Activity ID: {0}", Activity.ActivityId); } Console.WriteLine(""); } else { Console.WriteLine("GetRouteTeamActivities error: {0}", errorString); } }
/// <summary> /// Get Team Activities on a Route /// </summary> public void GetRouteTeamActivities() { // Create the manager with the api key Route4MeManager route4Me = new Route4MeManager(c_ApiKey); string routeId = "06B655F27E0D6A74BD37F6F9758E4D2E"; ActivityParameters activityParameters = new ActivityParameters { RouteId = routeId, Team = "true" }; // Run the query string errorString = ""; Activity[] activities = route4Me.GetActivityFeed(activityParameters, out errorString); Console.WriteLine(""); if (activities != null) { Console.WriteLine("GetActivities executed successfully, {0} activities returned", activities.Length); Console.WriteLine(""); foreach (Activity Activity in activities) { Console.WriteLine("Activity ID: {0}", Activity.ActivityId); } Console.WriteLine(""); } else { Console.WriteLine("GetActivities error: {0}", errorString); } }