Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
2
2018-app-inutralia
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
inutralia
2018-app-inutralia
Commits
0c652ddd
Commit
0c652ddd
authored
Jan 18, 2019
by
Javier Piris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Creados Models de preguntas
parent
3b5c2625
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
QuestionMessage.cs
inutralia/inutralia.Models/Questions/QuestionMessage.cs
+1
-2
QuestionSpecialist.cs
inutralia/inutralia.Models/Questions/QuestionSpecialist.cs
+5
-8
No files found.
inutralia/inutralia.Models/Questions/QuestionMessage.cs
View file @
0c652ddd
...
...
@@ -12,8 +12,7 @@ namespace inutralia.Models
public
QuestionMessage
()
{
Text
=
""
;
FromUser
=
true
;
CreatedAt
=
DateUtilities
.
formatedDateToTimeStamp
(
DateTime
.
UtcNow
);
FromUser
=
true
;
}
[
JsonProperty
(
"message"
,
Required
=
Required
.
Always
)]
...
...
inutralia/inutralia.Models/Questions/QuestionSpecialist.cs
View file @
0c652ddd
using
Newtonsoft.Json
;
using
Newtonsoft.Json.Converters
;
using
System.Collections.Generic
;
using
System
;
using
inutralia.Utils
;
namespace
inutralia.Models
{
...
...
@@ -14,10 +12,9 @@ namespace inutralia.Models
public
QuestionSpecialist
()
{
State
=
0
;
UpdatedAt
=
DateUtilities
.
formatedDateToTimeStamp
(
DateTime
.
UtcNow
);
}
public
enum
Estatus
{
Pending
,
Answered
,
Closed
}
public
enum
Estatus
{
Pending
,
Answered
}
public
string
StatusImg
=>
imgStatus
[
StateId
];
...
...
@@ -34,11 +31,10 @@ namespace inutralia.Models
[
JsonProperty
(
"messages"
,
Required
=
Required
.
Always
)]
public
IEnumerable
<
QuestionMessage
>
Messages
{
get
;
set
;
}
string
[]
imgStatus
=
new
string
[
3
]
string
[]
imgStatus
=
new
string
[
2
]
{
"message_status_cerrada.png"
,
// 3 - Cerrada pregunta
"message_status_pendiente.png"
,
// 7 - Pendiente de responder
"message_status_respondido.png"
,
// 8 - Respondida
"message_status_pendiente.png"
,
// 1 - Pendiente de responder
"message_status_respondido.png"
,
// 2 - Respondida
};
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment