コード例 #1
0
        public HitcherBase GetHitcherBase()
        {
            HitcherBase res = new HitcherBase();

            res.RideId   = RideId;
            res.UserId   = UserId;
            res.Accepted = Accepted;
            res.Comments = Comments;
            return(res);
        }
コード例 #2
0
        public void ReadHitcherBase(HitcherBase hitcher)
        {
            if (hitcher.RideId > -1)
            {
                RideId = hitcher.RideId;
            }

            if (hitcher.UserId > -1)
            {
                UserId = hitcher.UserId;
            }

            Accepted = hitcher.Accepted;

            if (!String.IsNullOrEmpty(hitcher.Comments))
            {
                Comments = hitcher.Comments;
            }
        }