Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ambrExchange
- {
- private string message;
- private string response;
- private int state;
- private int failed_count;
- public void count_failed()
- {
- this.failed_count++;
- }
- public void clear_failed_count()
- {
- failed_count = 0;
- }
- public int get_failed_count()
- {
- return failed_count;
- }
- public ambrExchange(string msg,string resp)
- {
- this.message = msg;
- this.response = resp;
- this.failed_count = 0;
- }
- public string getMessage()
- {
- return this.message;
- }
- public string getResponse()
- {
- return this.response;
- }
- public bool CheckResponse(string rx_response)
- {
- if(this.response.ToLower().Contains(rx_response.toLower())
- {
- return true;
- }
- else
- {
- return false;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment