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.
显示文件 Open project: messagegears/messagegears-csharp-sdk

Public Methods

Method 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

Method Description
isActivityElement ( String elementName ) : bool
processElement ( String elementType, String xml ) : void

Method Details

MessageGearsActivityFileProcessor() public method

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. ///
return System

process() public method

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. ///
return void