Last change
on this file since 12262 was
12262,
checked in by bayral, 13 years ago
|
piwigo.upload retrieve data, and ready to upload
|
File size:
875 bytes
|
Line | |
---|
1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using System.Linq; |
---|
4 | using System.Text; |
---|
5 | using System.IO; |
---|
6 | using Com.Piwigo.Uploader.DTO; |
---|
7 | using Com.Piwigo.Lib.DTO; |
---|
8 | |
---|
9 | namespace Com.Piwigo.Uploader.Service |
---|
10 | { |
---|
11 | public class UploadToPiwigo : IService |
---|
12 | { |
---|
13 | public void runService() |
---|
14 | { |
---|
15 | foreach (LocalAlbum Alb in ModelManager.Instance.lstAlbumLocaux) |
---|
16 | { |
---|
17 | uploadAlbum(Alb, ModelManager.Instance.PwgCategoryIdSelected); |
---|
18 | } |
---|
19 | } |
---|
20 | |
---|
21 | internal static void uploadAlbum(LocalAlbum aAlbum, Int32? catId) |
---|
22 | { |
---|
23 | foreach (LocalImage Img in aAlbum.LocalImages) |
---|
24 | { |
---|
25 | //uploadimage(); |
---|
26 | } |
---|
27 | |
---|
28 | foreach (LocalAlbum Alb in aAlbum.SubAlbums) |
---|
29 | { |
---|
30 | uploadAlbum(Alb, null); |
---|
31 | } |
---|
32 | } |
---|
33 | } |
---|
34 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.