コード例 #1
0
        private void RaisePublicReplyAddInteractionRequest(object itemBody)
        {
            if (itemBody == null || string.IsNullOrEmpty(itemBody.ToString()))
            {
                return;
            }

            var item = new CommunicationItemPublicReplyViewModel();

            item.Body = itemBody.ToString();
            AppendCommunicationItem(item, true, false);
            NewBody = string.Empty;
        }
コード例 #2
0
        public CommunicationItemPublicReplyViewModel PublicReply2PublicReplyViewModel(PublicReplyItem item)
        {
            CommunicationItemPublicReplyViewModel retVal=new CommunicationItemPublicReplyViewModel();

            retVal.Id = item.CommunicationItemId;
            retVal.AuthorName = item.AuthorName;
            retVal.Body = item.Body;
            retVal.LastModified = item.LastModified;

            return retVal;
        }
コード例 #3
0
        public PublicReplyItem PublicReplyViewModel2PublicReplyItem(CommunicationItemPublicReplyViewModel viewModel)
        {
            PublicReplyItem retVal=new PublicReplyItem();

            retVal.AuthorName = viewModel.AuthorName;
            retVal.Body = viewModel.Body;
            retVal.Title = viewModel.Title;

            if (viewModel.Id != null)
                retVal.CommunicationItemId = viewModel.Id;

            return retVal;
        }
		private void RaisePublicReplyAddInteractionRequest(object itemBody)
		{
			if (itemBody == null || string.IsNullOrEmpty(itemBody.ToString()))
				return;

			var item = new CommunicationItemPublicReplyViewModel();
			item.Body = itemBody.ToString();
			AppendCommunicationItem(item, true, false);
			NewBody = string.Empty;
		}