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
88f1509e
Commit
88f1509e
authored
Feb 05, 2019
by
Javier Piris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Elminados ficheros del proyecto modelos questions y gorilla.json
parent
f36025c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
97 deletions
+0
-97
QuestionMessage.cs
inutralia/inutralia.Models/Questions/QuestionMessage.cs
+0
-44
QuestionSpecialist.cs
inutralia/inutralia.Models/Questions/QuestionSpecialist.cs
+0
-47
Gorilla.json
inutralia/inutralia/Gorilla.json
+0
-6
No files found.
inutralia/inutralia.Models/Questions/QuestionMessage.cs
deleted
100644 → 0
View file @
f36025c2
using
inutralia.Utils
;
using
Newtonsoft.Json
;
using
System
;
namespace
inutralia.Models
{
[
JsonObject
(
MemberSerialization
.
OptIn
)]
public
class
QuestionMessage
:
ObservableEntityData
{
public
bool
FromExpert
=>
!
FromUser
;
public
QuestionMessage
()
{
Text
=
""
;
FromUser
=
true
;
}
[
JsonProperty
(
"message"
,
Required
=
Required
.
Always
)]
private
string
_Text
;
public
string
Text
{
get
{
return
_Text
;
}
set
{
SetProperty
(
ref
_Text
,
value
,
"Text"
);
}
}
[
JsonProperty
(
"from_user"
,
Required
=
Required
.
Always
)]
public
bool
FromUser
{
get
;
set
;
}
//[JsonProperty("title", Required = Required.Always)]
//public string Title { get; set; }
//[JsonProperty("name", Required = Required.Always)]
//public string Nombre { get; set; }
//[JsonProperty("description", Required = Required.Always)]
//public string Descripcion { get; set; }
//[JsonProperty("created_at", Required = Required.Always)]
//public int CreatedAt { get; set; }
//[JsonProperty("image", Required = Required.Always)]
//public string Image { get; set; }
}
}
inutralia/inutralia.Models/Questions/QuestionSpecialist.cs
deleted
100644 → 0
View file @
f36025c2
using
Newtonsoft.Json
;
using
Newtonsoft.Json.Converters
;
using
System.Collections.Generic
;
namespace
inutralia.Models
{
[
JsonObject
(
MemberSerialization
.
OptIn
)]
[
DataPath
(
"questionList"
)]
public
class
QuestionSpecialist
:
ObservableEntityData
{
public
QuestionSpecialist
(
string
subject
)
{
Subject
=
subject
;
State
=
0
;
List
<
QuestionMessage
>
msgs
=
new
List
<
QuestionMessage
>();
Messages
=
msgs
;
}
public
enum
Estatus
{
Pending
,
Answered_for_client
,
Answered_for_nutricionist
,
Closed
}
public
string
StatusImg
=>
imgStatus
[
StateId
];
[
JsonProperty
(
"state_id"
,
Required
=
Required
.
Always
)]
public
int
StateId
{
get
;
set
;
}
[
JsonProperty
(
"status"
,
Required
=
Required
.
Always
)]
[
JsonConverter
(
typeof
(
StringEnumConverter
))]
public
Estatus
State
{
get
;
set
;
}
[
JsonProperty
(
"subject"
,
Required
=
Required
.
Always
)]
public
string
Subject
{
get
;
set
;
}
[
JsonProperty
(
"message"
,
Required
=
Required
.
Always
)]
public
IEnumerable
<
QuestionMessage
>
Messages
{
get
;
set
;
}
string
[]
imgStatus
=
new
string
[
2
]
{
"pendiente.png"
,
// 1 - Pendiente de responder
//"respondida_por_cliente.png", // 2 - Respondida por cliente
//"respondida_por_nutricionista", // 3- Respondida por nutricionista
"cerrada"
// 4 - Conversación cerrada
};
}
}
\ No newline at end of file
inutralia/inutralia/Gorilla.json
deleted
100644 → 0
View file @
f36025c2
{
"navigationPage"
:
{
"all"
:
true
}
}
\ 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