Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A class full of SMPP fields
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using System.Text;
namespace TSharkConsumer
{
[System.Runtime.Serialization.DataContractAttribute(Name = "SMPPMessage",
Namespace = "http://schemas.datacontract.org/2004/07/teleios.messaging.smpp.Models")]
public class SMPPMessage
{
[DataMemberAttribute] public int ID { get; set; }
[DataMemberAttribute] public string SourceIP { get; set; }
[DataMemberAttribute] public string DestinationIP { get; set; }
[DataMemberAttribute] public string additional_status_info_text
{ get; set; }
[DataMemberAttribute] public string addr_npi
{ get; set; }
[DataMemberAttribute] public string addr_ton
{ get; set; }
[DataMemberAttribute] public string address_range
{ get; set; }
[DataMemberAttribute] public string alert_on_message_delivery_null
{ get; set; }
[DataMemberAttribute] public string alert_on_message_delivery_type
{ get; set; }
[DataMemberAttribute] public string billing_id
{ get; set; }
[DataMemberAttribute] public string broadcast_area_identifier
{ get; set; }
[DataMemberAttribute] public string broadcast_area_identifier_format
{ get; set; }
[DataMemberAttribute] public string broadcast_area_success
{ get; set; }
[DataMemberAttribute] public string broadcast_channel_indicator
{ get; set; }
[DataMemberAttribute] public string broadcast_content_type_info
{ get; set; }
[DataMemberAttribute] public string broadcast_content_type_nw
{ get; set; }
[DataMemberAttribute] public string broadcast_content_type_type
{ get; set; }
[DataMemberAttribute] public string broadcast_end_time
{ get; set; }
[DataMemberAttribute] public string broadcast_end_time_r
{ get; set; }
[DataMemberAttribute] public string broadcast_error_status
{ get; set; }
[DataMemberAttribute] public string broadcast_frequency_interval_unit
{ get; set; }
[DataMemberAttribute] public string broadcast_frequency_interval_value
{ get; set; }
[DataMemberAttribute] public string broadcast_message_class
{ get; set; }
[DataMemberAttribute] public string broadcast_rep_num
{ get; set; }
[DataMemberAttribute] public string broadcast_service_group
{ get; set; }
[DataMemberAttribute] public string callback_num
{ get; set; }
[DataMemberAttribute] public string callback_num_pres
{ get; set; }
[DataMemberAttribute] public string callback_num_scrn
{ get; set; }
[DataMemberAttribute] public string callback_num_atag
{ get; set; }
[DataMemberAttribute] public string command_id
{ get; set; }
[DataMemberAttribute] public string command_length
{ get; set; }
[DataMemberAttribute] public string command_status
{ get; set; }
[DataMemberAttribute] public string congestion_state
{ get; set; }
[DataMemberAttribute] public string data_coding
{ get; set; }
[DataMemberAttribute] public string dcs
{ get; set; }
[DataMemberAttribute] public string dcs_cbs_class
{ get; set; }
[DataMemberAttribute] public string dcs_cbs_coding_group
{ get; set; }
[DataMemberAttribute] public string dcs_cbs_language
{ get; set; }
[DataMemberAttribute] public string dcs_charset
{ get; set; }
[DataMemberAttribute] public string dcs_class
{ get; set; }
[DataMemberAttribute] public string dcs_class_present
{ get; set; }
[DataMemberAttribute] public string dcs_reserved
{ get; set; }
[DataMemberAttribute] public string dcs_sms_coding_group
{ get; set; }
[DataMemberAttribute] public string dcs_text_compression
{ get; set; }
[DataMemberAttribute] public string dcs_wap_class
{ get; set; }
[DataMemberAttribute] public string dcs_wap_coding
{ get; set; }
[DataMemberAttribute] public string delivery_failure_reason
{ get; set; }
[DataMemberAttribute] public string delivery_result
{ get; set; }
[DataMemberAttribute] public string dest_addr_np_country
{ get; set; }
[DataMemberAttribute] public string dest_addr_np_info
{ get; set; }
[DataMemberAttribute] public string dest_addr_np_resolution
{ get; set; }
[DataMemberAttribute] public string dest_addr_npi
{ get; set; }
[DataMemberAttribute] public string dest_addr_subunit
{ get; set; }
[DataMemberAttribute] public string dest_addr_ton
{ get; set; }
[DataMemberAttribute] public string dest_bearer_type
{ get; set; }
[DataMemberAttribute] public string dest_network_id
{ get; set; }
[DataMemberAttribute] public string dest_network_type
{ get; set; }
[DataMemberAttribute] public string dest_node_id
{ get; set; }
[DataMemberAttribute] public string dest_subaddress
{ get; set; }
[DataMemberAttribute] public string dest_telematics_id
{ get; set; }
[DataMemberAttribute] public string destination_addr
{ get; set; }
[DataMemberAttribute] public string destination_port
{ get; set; }
[DataMemberAttribute] public string display_time
{ get; set; }
[DataMemberAttribute] public string dl_name
{ get; set; }
[DataMemberAttribute] public string dlist
{ get; set; }
[DataMemberAttribute] public string dlist_resp
{ get; set; }
[DataMemberAttribute] public string dpf_result
{ get; set; }
[DataMemberAttribute] public string error_code
{ get; set; }
[DataMemberAttribute] public string error_status_code
{ get; set; }
[DataMemberAttribute] public string esm_submit_features
{ get; set; }
[DataMemberAttribute] public string esm_submit_msg_mode
{ get; set; }
[DataMemberAttribute] public string esm_submit_msg_type
{ get; set; }
[DataMemberAttribute] public string esme_addr
{ get; set; }
[DataMemberAttribute] public string esme_addr_npi
{ get; set; }
[DataMemberAttribute] public string esme_addr_ton
{ get; set; }
[DataMemberAttribute] public string final_date
{ get; set; }
[DataMemberAttribute] public string final_date_r
{ get; set; }
[DataMemberAttribute] public string interface_version
{ get; set; }
[DataMemberAttribute] public string its_reply_type
{ get; set; }
[DataMemberAttribute] public string its_session_ind
{ get; set; }
[DataMemberAttribute] public string its_session_number
{ get; set; }
[DataMemberAttribute] public string its_session_sequence
{ get; set; }
[DataMemberAttribute] public string language_indicator
{ get; set; }
[DataMemberAttribute] public string length_auth
{ get; set; }
[DataMemberAttribute] public string message
{ get; set; }
[DataMemberAttribute] public string message_id
{ get; set; }
[DataMemberAttribute] public string message_payload
{ get; set; }
[DataMemberAttribute] public string message_state
{ get; set; }
[DataMemberAttribute] public string mo_mt_flag
{ get; set; }
[DataMemberAttribute] public string more_messages_to_send
{ get; set; }
[DataMemberAttribute] public string ms_availability_status
{ get; set; }
[DataMemberAttribute] public string ms_validity
{ get; set; }
[DataMemberAttribute] public string msc_addr
{ get; set; }
[DataMemberAttribute] public string msc_addr_noa
{ get; set; }
[DataMemberAttribute] public string msc_addr_npi
{ get; set; }
[DataMemberAttribute] public string msg_wait_ind
{ get; set; }
[DataMemberAttribute] public string msg_wait_type
{ get; set; }
[DataMemberAttribute] public string network_error_code
{ get; set; }
[DataMemberAttribute] public string network_error_type
{ get; set; }
[DataMemberAttribute] public string notify_mode
{ get; set; }
[DataMemberAttribute] public string number_of_messages
{ get; set; }
[DataMemberAttribute] public string operation_result
{ get; set; }
[DataMemberAttribute] public string opt_param
{ get; set; }
[DataMemberAttribute] public string opt_param_len
{ get; set; }
[DataMemberAttribute] public string opt_param_tag
{ get; set; }
[DataMemberAttribute] public string opt_params
{ get; set; }
[DataMemberAttribute] public string password
{ get; set; }
[DataMemberAttribute] public string payload_type
{ get; set; }
[DataMemberAttribute] public string priority_flag
{ get; set; }
[DataMemberAttribute] public string privacy_indicator
{ get; set; }
[DataMemberAttribute] public string protocol_id
{ get; set; }
[DataMemberAttribute] public string qos_time_to_live
{ get; set; }
[DataMemberAttribute] public string receipted_message_id
{ get; set; }
[DataMemberAttribute] public string regdel_acks
{ get; set; }
[DataMemberAttribute] public string regdel_notif
{ get; set; }
[DataMemberAttribute] public string regdel_receipt
{ get; set; }
[DataMemberAttribute] public string replace_if_present_flag
{ get; set; }
[DataMemberAttribute] public string reserved_op
{ get; set; }
[DataMemberAttribute] public string sar_msg_ref_num
{ get; set; }
[DataMemberAttribute] public string sar_segment_seqnum
{ get; set; }
[DataMemberAttribute] public string sar_total_segments
{ get; set; }
[DataMemberAttribute] public string SC_interface_version
{ get; set; }
[DataMemberAttribute] public string schedule_delivery_time
{ get; set; }
[DataMemberAttribute] public string schedule_delivery_time_r
{ get; set; }
[DataMemberAttribute] public string sequence_number
{ get; set; }
[DataMemberAttribute] public string service_id
{ get; set; }
[DataMemberAttribute] public string service_type
{ get; set; }
[DataMemberAttribute] public string set_dpf
{ get; set; }
[DataMemberAttribute] public string sm_default_msg_id
{ get; set; }
[DataMemberAttribute] public string sm_id
{ get; set; }
[DataMemberAttribute] public string sm_length
{ get; set; }
[DataMemberAttribute] public string smppplus_version
{ get; set; }
[DataMemberAttribute] public string sms_signal
{ get; set; }
[DataMemberAttribute] public string smsc_addr
{ get; set; }
[DataMemberAttribute] public string source_addr
{ get; set; }
[DataMemberAttribute] public string source_addr_npi
{ get; set; }
[DataMemberAttribute] public string source_addr_subunit
{ get; set; }
[DataMemberAttribute] public string source_addr_ton
{ get; set; }
[DataMemberAttribute] public string source_bearer_type
{ get; set; }
[DataMemberAttribute] public string source_network_id
{ get; set; }
[DataMemberAttribute] public string source_network_type
{ get; set; }
[DataMemberAttribute] public string source_node_id
{ get; set; }
[DataMemberAttribute] public string source_port
{ get; set; }
[DataMemberAttribute] public string source_subaddress
{ get; set; }
[DataMemberAttribute] public string source_telematics_id
{ get; set; }
[DataMemberAttribute] public string system_id
{ get; set; }
[DataMemberAttribute] public string system_type
{ get; set; }
[DataMemberAttribute] public string user_message_reference
{ get; set; }
[DataMemberAttribute] public string user_response_code
{ get; set; }
[DataMemberAttribute] public string ussd_service_op
{ get; set; }
[DataMemberAttribute] public string validity_period
{ get; set; }
[DataMemberAttribute] public string validity_period_r
{ get; set; }
[DataMemberAttribute] public string vendor_op
{ get; set; }
[DataMemberAttribute] public DateTime? FrameTime { get; set; }
[DataMemberAttribute] public int FrameNumber { get; set; }
[DataMemberAttribute] public int SrcPort { get; set; }
[DataMemberAttribute] public int DstPort { get; set; }
[DataMemberAttribute] public int TcpStreamIndex { get; set; }
[DataMemberAttribute] public string DataSource { get; set; }
[DataMemberAttribute] public string TcpPayload { get; set; }
public override string ToString()
{
var hello = FrameTime.Value.ToLongTimeString() + " - " + command_id + " - " + sequence_number;
return hello;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.