diff options
Diffstat (limited to 'slips/src/app/Marina/Presentation/DTO/DisplayResponseLineDTO.cs')
| -rw-r--r-- | slips/src/app/Marina/Presentation/DTO/DisplayResponseLineDTO.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/slips/src/app/Marina/Presentation/DTO/DisplayResponseLineDTO.cs b/slips/src/app/Marina/Presentation/DTO/DisplayResponseLineDTO.cs new file mode 100644 index 0000000..b245db6 --- /dev/null +++ b/slips/src/app/Marina/Presentation/DTO/DisplayResponseLineDTO.cs @@ -0,0 +1,36 @@ +using System;
+
+namespace Marina.Presentation.DTO {
+ [Serializable]
+ public class DisplayResponseLineDTO : IEquatable< DisplayResponseLineDTO > {
+ private readonly string _message;
+
+ private DisplayResponseLineDTO() {}
+
+ public DisplayResponseLineDTO( string message ) {
+ _message = message;
+ }
+
+ public string Message {
+ get { return _message; }
+ }
+
+ public bool Equals( DisplayResponseLineDTO displayResponseLineDTO ) {
+ if ( displayResponseLineDTO == null ) {
+ return false;
+ }
+ return Equals( _message, displayResponseLineDTO._message );
+ }
+
+ public override bool Equals( object obj ) {
+ if ( ReferenceEquals( this, obj ) ) {
+ return true;
+ }
+ return Equals( obj as DisplayResponseLineDTO );
+ }
+
+ public override int GetHashCode() {
+ return _message != null ? _message.GetHashCode( ) : 0;
+ }
+ }
+}
\ No newline at end of file |
