C# Class MessageGears.MessageGearsActivityFileProcessor

This class is used to process the daily account activity files from MessageGears. This method is often used in place of the real-time event feed if receiving your activity data in real-time is not a requirement for your business.
Afficher le fichier Open project: messagegears/messagegears-csharp-sdk

Méthodes publiques

Méthode Description
MessageGearsActivityFileProcessor ( MessageGearsListener listener ) : System

Use to construct an instance of the ActivityFileProcessor class.

process ( String filename ) : void

Starts the parsing of the activity XML file retrieved from MessageGears. Once invoked, the methods in the listener instance will be fired for each item in the activity file.

Private Methods

Méthode Description
isActivityElement ( String elementName ) : bool
processElement ( String elementType, String xml ) : void

Method Details

MessageGearsActivityFileProcessor() public méthode

Use to construct an instance of the ActivityFileProcessor class.
public MessageGearsActivityFileProcessor ( MessageGearsListener listener ) : System
listener MessageGearsListener /// Your implementation of the MessageGearsListener interface that know what to do with each event type that can come back from the MessageGears system. ///
Résultat System

process() public méthode

Starts the parsing of the activity XML file retrieved from MessageGears. Once invoked, the methods in the listener instance will be fired for each item in the activity file.
public process ( String filename ) : void
filename String /// The fully qualified name of the file to be processed. ///
Résultat void