Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. export interface INewsTickerItem extends SFInterfaces.ISharePointListBackedEntity {
  2. Title: string;
  3. News: string;
  4. EffectiveDate: Date;
  5. ExpirationDate: Date;
  6. RedirectUrl: string;
  7. }
  8.  
  9. export class NewsTickerItem extends AbstractViewPortItem implements INewsTickerItem {
  10.  
  11. public SharePointID: number;
  12.  
  13. public Title: string;
  14. public News: string;
  15. public EffectiveDate: Date;
  16. public ExpirationDate: Date;
  17. public RedirectUrl: string;
  18. public DisplaySequence: number;
  19.  
  20. constructor() {
  21.  
  22. super();
  23.  
  24. this.Title = "";
  25. this.News = "";
  26. this.RedirectUrl = "";
  27.  
  28. const yesterday = new Date(new Date().setDate(new Date().getDate() - 1));
  29. this.EffectiveDate = yesterday;
  30. this.ExpirationDate = yesterday;
  31. this.DisplaySequence = 0;
  32.  
  33. }
  34.  
  35. static GetSharePointMetadata(): SFInterfaces.ISharePointEntityMetadata ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement