Example #1
0
 public bool SetDataRoot(global::System.Object newDataRoot)
 {
     if (newDataRoot != null)
     {
         this.dataRoot = (global::NEWSAPI.Models.Article)newDataRoot;
         return(true);
     }
     return(false);
 }
Example #2
0
 // Update methods for each path node used in binding steps.
 private void Update_(global::NEWSAPI.Models.Article obj, int phase)
 {
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | (1 << 0))) != 0)
         {
             this.Update_author(obj.author, phase);
             this.Update_title(obj.title, phase);
             this.Update_description(obj.description, phase);
         }
     }
 }