[longomatch] Extract title from the project details



commit 9e9f807efb083f4e97e077c04e70ac1ed2ca85db
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Oct 10 13:39:15 2014 +0200

    Extract title from the project details

 LongoMatch.Core/Store/ProjectDescription.cs |   15 ++++-----------
 1 files changed, 4 insertions(+), 11 deletions(-)
---
diff --git a/LongoMatch.Core/Store/ProjectDescription.cs b/LongoMatch.Core/Store/ProjectDescription.cs
index 4572624..d000e11 100644
--- a/LongoMatch.Core/Store/ProjectDescription.cs
+++ b/LongoMatch.Core/Store/ProjectDescription.cs
@@ -30,8 +30,6 @@ namespace LongoMatch.Core.Store
        [Serializable]
        public class ProjectDescription :  IComparable, IIDObject
        {
-               string title;
-
                /// <summary>
                /// Unique ID of the parent project
                /// </summary>
@@ -43,17 +41,12 @@ namespace LongoMatch.Core.Store
                /// <summary>
                /// Title of the project
                /// </summary>
+               [JsonIgnore]
                public String Title {
                        get {
-                               if (title == null) {
-                                       return String.Format ("{0} - {1} ({2}-{3}) {4} {5}",
-                                                             LocalName, VisitorName, LocalGoals, 
VisitorGoals,
-                                                             Competition, Season);
-                               }
-                               return title;
-                       }
-                       set {
-                               title = value;
+                               return String.Format ("{0} - {1} ({2}-{3}) {4} {5}",
+                                                     LocalName, VisitorName, LocalGoals, VisitorGoals,
+                                                     Competition, Season);
                        }
                }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]