public GolferRatingsViewContract(GolferRatings_View golferRating)
 {
     Comments       = golferRating.Comments;
     CreateDateTime = (golferRating.CreateDateTime == null) ? MobileUtility.DateTimeToUnixTime(DateTime.MinValue) : MobileUtility.DateTimeToUnixTime((DateTime)golferRating.CreateDateTime);
     GolferId       = golferRating.GolferId;
     Rating         = golferRating.Rating;
     SubmitterName  = golferRating.SubmitterName;
 }
 public GolferPrivateMessageContract(GolferPrivateMessages_View message)
 {
     MessageId = message.MessageId;
     SendingGolferScreenName   = message.SenderScreenName;
     SendingGolferId           = message.SenderGolferId;
     ReceivingGolferScreenName = message.ReceiverScreenName;
     ReceivingGolferId         = message.ReceiverGolferId;
     RootMessageId             = message.RootGolferMessageId;
     Message        = message.Message;
     CreateDateTime = (message.MessageCreateDate == null) ? MobileUtility.DateTimeToUnixTime(DateTime.MinValue) : MobileUtility.DateTimeToUnixTime((DateTime)message.MessageCreateDate);
 }
 public GolferStatusMessagesContract(GolferStatusMessages_View golferStatusMessage)
 {
     GolferId          = golferStatusMessage.GolferId;
     EmailAddress      = golferStatusMessage.EmailAddress;
     Handicap          = (golferStatusMessage.Handicap == null) ? 0 : (int)golferStatusMessage.Handicap;
     AllowEmails       = (golferStatusMessage.AllowEmails == null) ? false : (bool)golferStatusMessage.AllowEmails;
     ScreenName        = golferStatusMessage.ScreenName;
     Message           = golferStatusMessage.Message;
     MessageCreateDate = (golferStatusMessage.MessageCreateDate == null) ? MobileUtility.DateTimeToUnixTime(DateTime.MinValue) : MobileUtility.DateTimeToUnixTime((DateTime)golferStatusMessage.MessageCreateDate);
     Rating            = (golferStatusMessage.Rating == null) ? 0 : (decimal)golferStatusMessage.Rating;
     NumRatings        = (golferStatusMessage.NumRatings == null) ? 0 : (int)golferStatusMessage.NumRatings;
     CourseName        = golferStatusMessage.CourseName;
 }