continuation de la partie advertiser
This commit is contained in:
parent
01c0e137e0
commit
1e5b9bd49c
28 changed files with 656 additions and 91 deletions
|
|
@ -17,7 +17,18 @@ const TAB_ADVERT: Advert[] = [
|
|||
],
|
||||
interests: [ "rock", "basket" ],
|
||||
comment: "pub pour vacances de noêl",
|
||||
views: 5,
|
||||
views: [
|
||||
new Date(2021,10,1),
|
||||
new Date(2021,10,2),
|
||||
new Date(2021,10,3),
|
||||
new Date(2021,10,3),
|
||||
new Date(2021,10,5),
|
||||
new Date(2021,10,5),
|
||||
new Date(2021,10,5),
|
||||
new Date(2021,10,5),
|
||||
new Date(2021,10,5),
|
||||
new Date(2021,10,7)
|
||||
],
|
||||
isVisible: true,
|
||||
isActive: true,
|
||||
createdAt: new Date(),
|
||||
|
|
@ -34,12 +45,51 @@ const TAB_ADVERT: Advert[] = [
|
|||
],
|
||||
interests: [ "rock", "rap" ],
|
||||
comment: "pub pour cette année",
|
||||
views: 2,
|
||||
views: [
|
||||
new Date(2021,10,5),
|
||||
new Date(2021,10,6),
|
||||
new Date(2021,10,7),
|
||||
new Date(2021,10,8),
|
||||
new Date(2021,10,8),
|
||||
new Date(2021,10,8),
|
||||
new Date(2021,10,25),
|
||||
new Date(2021,10,25),
|
||||
new Date(2021,10,25),
|
||||
new Date(2021,10,27)
|
||||
],
|
||||
isVisible: true,
|
||||
isActive: true,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
_id: "idAlbion",
|
||||
userId: "userId",
|
||||
title: "Albion new version",
|
||||
advertiser: "albion",
|
||||
images: [
|
||||
{ url: "rolex_v_1.jpg", description: "albion 1" },
|
||||
{ url: "rolex_v_2.png", description: "albion 2" },
|
||||
],
|
||||
interests: [ "rock", "rap" ],
|
||||
comment: "pub pour cette année",
|
||||
views: [
|
||||
new Date(2021,10,3),
|
||||
new Date(2021,10,4),
|
||||
new Date(2021,10,4),
|
||||
new Date(2021,10,5),
|
||||
new Date(2021,10,5),
|
||||
new Date(2021,10,6),
|
||||
new Date(2021,10,6),
|
||||
new Date(2021,10,8),
|
||||
new Date(2021,10,8),
|
||||
new Date(2021,10,8)
|
||||
],
|
||||
isVisible: true,
|
||||
isActive: true,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
|
|
@ -71,4 +121,10 @@ export class FictitiousAdvertsService
|
|||
return tabAdvert;
|
||||
}
|
||||
|
||||
|
||||
get_TAB_ADVERT(): Advert[]
|
||||
{
|
||||
return TAB_ADVERT;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,15 @@ const TAB_VIDEO: VideoAll[] = [
|
|||
userId: "userId",
|
||||
source: "youtube",
|
||||
tags: [ "rap", "musique" ],
|
||||
watchedDates: [new Date()],
|
||||
interest: "PNL",
|
||||
watchedDates: [
|
||||
new Date(2021, 10, 15),
|
||||
new Date(2021, 10, 16),
|
||||
new Date(2021, 10, 17),
|
||||
new Date(2021, 10, 18),
|
||||
new Date(2021, 10, 19),
|
||||
new Date(2021, 10, 20),
|
||||
],
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
|
||||
|
|
@ -30,6 +38,7 @@ const TAB_VIDEO: VideoAll[] = [
|
|||
userId: "userId",
|
||||
source: "youtube",
|
||||
tags: [ "rap", "musique" ],
|
||||
interest: "PNL",
|
||||
watchedDates: [new Date()],
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
|
|
@ -47,6 +56,7 @@ const TAB_VIDEO: VideoAll[] = [
|
|||
userId: "userId",
|
||||
source: "youtube",
|
||||
tags: [ "rap", "musique" ],
|
||||
interest: "PNL",
|
||||
watchedDates: [new Date()],
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
|
|
@ -64,6 +74,7 @@ const TAB_VIDEO: VideoAll[] = [
|
|||
userId: "userId",
|
||||
source: "youtube",
|
||||
tags: [ "rap", "musique" ],
|
||||
interest: "PNL",
|
||||
watchedDates: [new Date()],
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
|
|
@ -81,6 +92,7 @@ const TAB_VIDEO: VideoAll[] = [
|
|||
userId: "userId",
|
||||
source: "dailymotion",
|
||||
tags: [ "rap", "musique" ],
|
||||
interest: "PNL",
|
||||
watchedDates: [new Date()],
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
|
|
@ -98,6 +110,7 @@ const TAB_VIDEO: VideoAll[] = [
|
|||
userId: "userId",
|
||||
source: "youtube",
|
||||
tags: [ "rap", "musique" ],
|
||||
interest: "Nekfeu",
|
||||
watchedDates: [new Date()],
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
|
|
@ -115,6 +128,7 @@ const TAB_VIDEO: VideoAll[] = [
|
|||
userId: "userId",
|
||||
source: "youtube",
|
||||
tags: [ "rap", "musique" ],
|
||||
interest: "Nekfeu",
|
||||
watchedDates: [new Date()],
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
|
|
@ -132,6 +146,7 @@ const TAB_VIDEO: VideoAll[] = [
|
|||
userId: "userId",
|
||||
source: "youtube",
|
||||
tags: [ "rap", "musique" ],
|
||||
interest: "Nekfeu",
|
||||
watchedDates: [new Date()],
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
|
|
@ -149,6 +164,7 @@ const TAB_VIDEO: VideoAll[] = [
|
|||
userId: "userId",
|
||||
source: "dailymotion",
|
||||
tags: [ "rap", "musique" ],
|
||||
interest: "Columbine",
|
||||
watchedDates: [new Date()],
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
|
|
@ -166,6 +182,7 @@ const TAB_VIDEO: VideoAll[] = [
|
|||
userId: "userId",
|
||||
source: "dailymotion",
|
||||
tags: [ "rap", "musique" ],
|
||||
interest: "Columbine",
|
||||
watchedDates: [new Date()],
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
|
|
@ -210,7 +227,7 @@ export class FictitiousVideosService
|
|||
}
|
||||
|
||||
|
||||
getAllVideoAll(): VideoAll[]
|
||||
get_TAB_VIDEO(): VideoAll[]
|
||||
{
|
||||
return TAB_VIDEO;
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue