-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreateNote.cs
More file actions
29 lines (25 loc) · 803 Bytes
/
CreateNote.cs
File metadata and controls
29 lines (25 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using Evernote.EDAM.Type;
using VVVV.PluginInterfaces.V2;
namespace VVVV.Nodes.Evernote
{
[PluginInfo(Name = "CreateNote", Category = "Evernote", Help = "", Tags = "")]
public class CreateNote : IPluginEvaluate
{
[Input("Note")]
private ISpread<Note> FNoteIn;
[Input("Evernote", IsSingle = true)]
private ISpread<Evernote> FEvernoteIn;
[Input("Create", IsBang = true, IsSingle = true)]
private ISpread<bool> FCreateIn;
public void Evaluate(int SpreadMax)
{
if(FCreateIn[0])
{
for (var i = 0; i < SpreadMax; i++)
{
FEvernoteIn[0].NoteStore.createNote(FEvernoteIn[0].Token, FNoteIn[i]);
}
}
}
}
}