Add Helpers/Export/
This commit is contained in:
4
Elwig/Helpers/Export/Bki.cs
Normal file
4
Elwig/Helpers/Export/Bki.cs
Normal file
@ -0,0 +1,4 @@
|
||||
namespace Elwig.Helpers.Export {
|
||||
public class Bki {
|
||||
}
|
||||
}
|
4
Elwig/Helpers/Export/Csv.cs
Normal file
4
Elwig/Helpers/Export/Csv.cs
Normal file
@ -0,0 +1,4 @@
|
||||
namespace Elwig.Helpers.Export {
|
||||
public class Csv {
|
||||
}
|
||||
}
|
15
Elwig/Helpers/Export/Ebics.cs
Normal file
15
Elwig/Helpers/Export/Ebics.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using Elwig.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Elwig.Helpers.Export {
|
||||
public class Ebics : IBankingProvider {
|
||||
|
||||
public string FileExtension => "xml";
|
||||
|
||||
public Task Export(string filename, int avnr, IEnumerable<Member> members) {
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
15
Elwig/Helpers/Export/Elba.cs
Normal file
15
Elwig/Helpers/Export/Elba.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using Elwig.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Elwig.Helpers.Export {
|
||||
public class Elba : IBankingProvider {
|
||||
|
||||
public string FileExtension => "elba";
|
||||
|
||||
public Task Export(string filename, int avnr, IEnumerable<Member> members) {
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
24
Elwig/Helpers/Export/IBankingProvider.cs
Normal file
24
Elwig/Helpers/Export/IBankingProvider.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using Elwig.Models;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Elwig.Helpers.Export {
|
||||
/// <summary>
|
||||
/// Interface for exporting banking data
|
||||
/// </summary>
|
||||
public interface IBankingProvider {
|
||||
/// <summary>
|
||||
/// The default file extension of the exported files to be used (whithout a preceding ".")
|
||||
/// </summary>
|
||||
string FileExtension { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Export the member payment data of the given payment variant to the given file.
|
||||
/// (The amount of the last payed variant is deducted from the calculated amount.)
|
||||
/// </summary>
|
||||
/// <param name="filename">The file to export the data to</param>
|
||||
/// <param name="avnr">The number of the payment variant to export</param>
|
||||
/// <param name="members">The members whose data to include in the export</param>
|
||||
Task Export(string filename, int avnr, IEnumerable<Member> members);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user