示例#1
0
 private static void BuildObjectMetaData(JryObject obj)
 {
     if (obj != null && !obj.IsMetaDataBuilded())
     {
         obj.BuildMetaData();
     }
 }
示例#2
0
 private static void BuildObjectMetaData(JryObject obj)
 {
     if (obj?.IsMetaDataBuilded() == false)
     {
         obj.BuildMetaData();
     }
 }
示例#3
0
        private CombineResult CanCombine(Series to, Series @from)
        {
            if (!JryObject.CanCombineField(to.TheTVDBId, from.TheTVDBId))
            {
                return(CombineResult.False("have diff TheTVDB id."));
            }

            if (!JryObject.CanCombineField(to.ImdbId, from.ImdbId))
            {
                return(CombineResult.False("have diff douban id."));
            }

            if (!JryObject.CanCombineField(to.WorldLineId, from.WorldLineId))
            {
                return(CombineResult.False("have diff world line id."));
            }

            return(CombineResult.True);
        }
示例#4
0
 public bool IsObsolete(JryObject obj)
 {
     Debug.Assert(obj != null);
     return(this.IsObsolete(obj.GetType()));
 }
示例#5
0
 protected ObjectRef(JryObject obj)
 {
     this.Id = obj.Id;
 }
示例#6
0
 public bool IsObsolete(JryObject obj)
 {
     Debug.Assert(obj != null);
     return this.IsObsolete(obj.GetType());
 }
示例#7
0
 protected ObjectRef(JryObject obj)
 {
     this.Id = obj.Id;
 }