type NotificationRequest struct {
RanName string
- Len int
+ Len int
Payload []byte
- StartTime time.Time
- TransactionId string
+ StartTime time.Time
+ TransactionId []byte
+}
+
+func NewNotificationRequest(ranName string, payload []byte, startTime time.Time, transactionId []byte) *NotificationRequest {
+ return &NotificationRequest{
+ ranName,
+ len(payload),
+ payload,
+ startTime,
+ transactionId,
+ }
}